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 A extends core::Object { | 6 class A extends core::Object { |
| 7 static field dynamic _redirecting# = <dynamic>[self::A::foo]; |
7 constructor •() → void | 8 constructor •() → void |
8 : super core::Object::•() {} | 9 : super core::Object::•() {} |
9 static factory foo() → self::A | 10 static factory foo() → self::A |
10 invalid-statement; | 11 let final dynamic #t1 = self::C::bar in invalid-expression; |
11 method m() → core::int {} | 12 method m() → core::int {} |
12 } | 13 } |
13 class C extends self::A { | 14 class C extends self::A { |
| 15 static field dynamic _redirecting# = <dynamic>[self::C::bar]; |
14 constructor •() → void | 16 constructor •() → void |
15 : super self::A::•() {} | 17 : super self::A::•() {} |
16 static factory bar() → self::D | 18 static factory bar() → self::D |
17 throw "Missing constructor: D"; | 19 let final dynamic #t2 = self::D::• in invalid-expression; |
18 method m() → core::int { | 20 method m() → core::int { |
19 return 1; | 21 return 1; |
20 } | 22 } |
21 } | 23 } |
22 class D extends self::C { | 24 class D extends self::C { |
23 constructor •() → void | 25 constructor •() → void |
24 : super self::C::•() | 26 : super self::C::•() |
25 ; | 27 ; |
26 method m() → core::int { | 28 method m() → core::int { |
27 return 2; | 29 return 2; |
28 } | 30 } |
29 } | 31 } |
30 static method main() → dynamic { | 32 static method main() → dynamic { |
31 self::A a = self::C::bar(); | 33 self::A a = self::C::bar(); |
32 exp::Expect::equals(2, a.m(), null); | 34 exp::Expect::equals(2, a.m(), null); |
33 } | 35 } |
OLD | NEW |