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 | 4 |
5 class C extends core::Object { | 5 class C extends core::Object { |
6 static field dynamic _redirecting# = <dynamic>[self::C::good]; | 6 const constructor constant() → dynamic |
7 const constructor constant() → void | |
8 : super core::Object::•() | 7 : super core::Object::•() |
9 ; | 8 ; |
10 constructor missingFactoryKeyword() → void | 9 constructor missingFactoryKeyword() → dynamic |
11 : super core::Object::•() | 10 : super core::Object::•() |
12 const core::_ConstantExpressionError::•()._throw(new core::_CompileTimeError
::•("pkg/front_end/testcases/rasta/issue_000044.dart:14:31: Error: Can't return
from a constructor.\n C.missingFactoryKeyword() = C.constant;\n
^")); | 11 invalid-statement; |
13 static factory good() → self::C | 12 static factory good() → self::C |
14 let dynamic #redirecting_factory = self::C::constant in invalid-expression; | 13 invalid-statement; |
15 method notEvenAConstructor(dynamic a) → self::C | 14 method notEvenAConstructor(dynamic a) → self::C |
16 return this.h; | 15 invalid-statement; |
17 } | 16 } |
18 const field dynamic #errors = const <dynamic>["pkg/front_end/testcases/rasta/iss
ue_000044.dart:7:8: Error: Expected a function body or '=>'.\na b(c) = d;\n
^", "pkg/front_end/testcases/rasta/issue_000044.dart:7:8: Error: Expected a fu
nction body or '=>'.\na b(c) = d;\n ^", "pkg/front_end/testcases/rasta/iss
ue_000044.dart:14:29: Error: Expected a function body or '=>'.\n C.missingFacto
ryKeyword() = C.constant;\n ^", "pkg/front_end/testca
ses/rasta/issue_000044.dart:21:28: Error: Expected a function body or '=>'.\n C
notEvenAConstructor(a) = h;\n ^"]/* from null */; | 17 static method b() → dynamic |
19 static method b(dynamic c) → invalid-type | 18 invalid-statement; |
20 return throw new core::NoSuchMethodError::_withType(null, #d, 33, <dynamic>[].
toList(growable: false), <dynamic, dynamic>{}, null); | |
21 static method main() → dynamic { | 19 static method main() → dynamic { |
22 self::C c = null; | 20 self::C c = null; |
23 core::print(const self::C::constant()); | 21 core::print(const self::C::constant()); |
24 core::print(const core::_ConstantExpressionError::•()._throw(new core::_Compil
eTimeError::•("pkg/front_end/testcases/rasta/issue_000044.dart:27:15: Error: Not
a const constructor.\n print(const C.missingFactoryKeyword());\n
^"))); | 22 core::print(invalid-expression); |
25 core::print(const self::C::constant()); | 23 core::print(const self::C::constant()); |
26 core::print(new self::C::constant().notEvenAConstructor(null)); | 24 core::print(new self::C::constant().notEvenAConstructor(null)); |
27 } | 25 } |
OLD | NEW |