OLD | NEW |
| (Empty) |
1 library; | |
2 import self as self; | |
3 import "dart:core" as core; | |
4 import "package:expect/expect.dart" as exp; | |
5 | |
6 class G<T extends core::Object> extends core::Object { | |
7 constructor •() → self::G<self::G::T> | |
8 : super core::Object::•(); | |
9 } | |
10 class A extends core::Object { | |
11 constructor •() → self::A | |
12 : super core::Object::•(); | |
13 } | |
14 class B extends self::A { | |
15 constructor •() → self::B | |
16 : super self::A::•(); | |
17 } | |
18 class C extends self::B { | |
19 constructor •() → self::C | |
20 : super self::B::•(); | |
21 } | |
22 static method main() → dynamic { | |
23 exp::Expect::isFalse(new self::G::•<self::B>() is self::G<self::C>); | |
24 exp::Expect::isFalse(new self::G::•<self::A>() is self::G<self::B>); | |
25 exp::Expect::isFalse(new self::G::•<self::A>() is self::G<self::C>); | |
26 exp::Expect::isFalse(new self::G::•<core::Object>() is self::G<self::B>); | |
27 exp::Expect::isFalse(new self::G::•<core::int>() is self::G<self::B>); | |
28 exp::Expect::isFalse(new self::G::•<core::int>() is self::G<core::double>); | |
29 exp::Expect::isFalse(new self::G::•<core::int>() is self::G<core::String>); | |
30 } | |
OLD | NEW |