blob: e2d49f4831f6e51f0ead49685a625b229200d7f2 [file] [log] [blame]
library;
import self as self;
import "dart:core" as core;
import "package:expect/expect.dart" as exp;
import "package:expect/expect.dart";
class G<T extends core::Object* = dynamic> extends core::Object {
synthetic constructor •() self::G<self::G::T*>*
: super core::Object::•()
;
}
class A extends core::Object {
synthetic constructor •() self::A*
: super core::Object::•()
;
}
class B extends self::A {
synthetic constructor •() self::B*
: super self::A::•()
;
}
class C extends self::B {
synthetic constructor •() self::C*
: super self::B::•()
;
}
static method main() dynamic {
exp::Expect::isFalse(new self::G::•<self::B*>() is self::G<self::C*>*);
exp::Expect::isFalse(new self::G::•<self::A*>() is self::G<self::B*>*);
exp::Expect::isFalse(new self::G::•<self::A*>() is self::G<self::C*>*);
exp::Expect::isFalse(new self::G::•<core::Object*>() is self::G<self::B*>*);
exp::Expect::isFalse(new self::G::•<core::int*>() is self::G<self::B*>*);
exp::Expect::isFalse(new self::G::•<core::int*>() is self::G<core::double*>*);
exp::Expect::isFalse(new self::G::•<core::int*>() is self::G<core::String*>*);
}