| 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 const constructor constant() → dynamic | 6 static field dynamic _redirecting# = <dynamic>[self::C::good]; |
| 7 const constructor constant() → void |
| 7 : super core::Object::•() | 8 : super core::Object::•() |
| 8 ; | 9 ; |
| 9 constructor missingFactoryKeyword() → dynamic | 10 constructor missingFactoryKeyword() → void |
| 10 : super core::Object::•() | 11 : super core::Object::•() |
| 11 invalid-statement; | 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
^")); |
| 12 static factory good() → self::C | 13 static factory good() → self::C |
| 13 invalid-statement; | 14 let dynamic #redirecting_factory = self::C::constant in invalid-expression; |
| 14 method notEvenAConstructor(dynamic a) → self::C | 15 method notEvenAConstructor(dynamic a) → self::C |
| 15 invalid-statement; | 16 return this.h; |
| 16 } | 17 } |
| 17 static method b() → dynamic | 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 */; |
| 18 invalid-statement; | 19 static method b(dynamic c) → invalid-type |
| 20 return throw new core::NoSuchMethodError::_withType(null, #d, 33, <dynamic>[].
toList(growable: false), <dynamic, dynamic>{}, null); |
| 19 static method main() → dynamic { | 21 static method main() → dynamic { |
| 20 self::C c = null; | 22 self::C c = null; |
| 21 core::print(const self::C::constant()); | 23 core::print(const self::C::constant()); |
| 22 core::print(invalid-expression); | 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
^"))); |
| 23 core::print(const self::C::constant()); | 25 core::print(const self::C::constant()); |
| 24 core::print(new self::C::constant().notEvenAConstructor(null)); | 26 core::print(new self::C::constant().notEvenAConstructor(null)); |
| 25 } | 27 } |
| OLD | NEW |