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