OLD | NEW |
(Empty) | |
| 1 library; |
| 2 import self as self; |
| 3 import "dart:core" as core; |
| 4 |
| 5 class X extends core::Object { |
| 6 constructor •() → void |
| 7 : super core::Object::•() |
| 8 ; |
| 9 } |
| 10 class A extends core::Object { |
| 11 field self::X foo = null; |
| 12 constructor named(self::X foo) → void |
| 13 : super core::Object::•() {} |
| 14 constructor •(self::X foo) → void |
| 15 : dynamic extracted#0 = () → self::X |
| 16 throw "Calling unconverted closure at pkg/kernel/testcases/closures_initia
lizers/local_initializers.dart:17:26"; |
| 17 .call(), this self::A::named(extracted#0) |
| 18 ; |
| 19 } |
| 20 static method main() → dynamic { |
| 21 self::A a = new self::A::•(new self::X::•()); |
| 22 a.foo; |
| 23 } |
OLD | NEW |