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