OLD | NEW |
---|---|
1 library field_initializer_test; | 1 library field_initializer_test; |
2 import self as self; | 2 import self as self; |
3 import "dart:core" as core; | 3 import "dart:core" as core; |
4 import "../../runtime/reify/interceptors.dart" as int; | 4 import "../../runtime/reify/interceptors.dart" as int; |
5 import "../../runtime/reify/types.dart" as typ; | 5 import "../../runtime/reify/types.dart" as typ; |
6 import "./test_base.dart" as tes; | 6 import "./test_base.dart" as tes; |
7 import "../../runtime/reify/declarations.dart" as dec; | 7 import "../../runtime/reify/declarations.dart" as dec; |
8 | 8 |
9 class A extends core::Object implements int::HasRuntimeTypeGetter { | 9 class A extends core::Object implements int::HasRuntimeTypeGetter { |
10 field dynamic a1 = self::p("a1"); | 10 field dynamic a1 = self::p("a1"); |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
53 dec::init(d, 19, new typ::Interface::•(d.[](15)), <dynamic>[new typ::Interface ::•(d.[](17), <dynamic>[new typ::Interface::•(d.[](19))])]); | 53 dec::init(d, 19, new typ::Interface::•(d.[](15)), <dynamic>[new typ::Interface ::•(d.[](17), <dynamic>[new typ::Interface::•(d.[](19))])]); |
54 dec::init(d, 20, new typ::Interface::•(d.[](15))); | 54 dec::init(d, 20, new typ::Interface::•(d.[](15))); |
55 dec::init(d, 21, new typ::Interface::•(d.[](15))); | 55 dec::init(d, 21, new typ::Interface::•(d.[](15))); |
56 return d; | 56 return d; |
57 }.call(dec::allocateDeclarations(<dynamic>["A", "B", "Null", "bool", "String", " int", "double", "Type", "AbstractClassInstantiationError", "NoSuchMethodError", "CyclicInitializationError", "UnsupportedError", "IntegerDivisionByZeroException ", "RangeError", "ArgumentError", "Object", "HasRuntimeTypeGetter", "Comparable" , "Pattern", "num", "Error", "Exception"], <dynamic>[1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0])); | 57 }.call(dec::allocateDeclarations(<dynamic>["A", "B", "Null", "bool", "String", " int", "double", "Type", "AbstractClassInstantiationError", "NoSuchMethodError", "CyclicInitializationError", "UnsupportedError", "IntegerDivisionByZeroException ", "RangeError", "ArgumentError", "Object", "HasRuntimeTypeGetter", "Comparable" , "Pattern", "num", "Error", "Exception"], <dynamic>[1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0])); |
58 static method p(dynamic x) → dynamic { | 58 static method p(dynamic x) → dynamic { |
59 tes::write(x); | 59 tes::write(x); |
60 return x; | 60 return x; |
61 } | 61 } |
62 static method main() → dynamic { | 62 static method main() → dynamic { |
63 dynamic b = new self::B::•(new typ::Interface::•(self::$declarations.[](1), <d ynamic>[const typ::Dynamic::•()])); | 63 self::B b = new self::B::•(new typ::Interface::•(self::$declarations.[](1), <d ynamic>[const typ::Dynamic::•()])); |
64 tes::expectOutput("b1\nb2\nb3\nb4\na1\na2\nA\nB"); | 64 tes::expectOutput("b1\nb2\nb3\nb4\na1\na2\nA\nB"); |
65 } | 65 } |
OLD | NEW |