blob: c1671814849f73b74f30ab346216c115d007a460 [file] [log] [blame]
library test;
import self as self;
import "dart:core" as core;
abstract class B extends core::Object {
synthetic constructor •() self::B*
: super core::Object::•()
;
abstract method foo() void;
}
abstract class C extends self::B {
synthetic constructor •() self::C*
: super self::B::•()
;
abstract method bar() void;
}
static method f<T extends self::B* = dynamic>(self::f::T* a) void {
if(a is core::String*) {
a.foo();
}
if(a is self::C*) {
a.bar();
}
}
static method main() dynamic {}