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 invalid-statement; |
16 } | 17 } |
17 static method b() → dynamic | 18 static method b(dynamic c) → invalid-type |
18 invalid-statement; | 19 return throw new core::NoSuchMethodError::_withType(null, #d, 33, <dynamic>[].
toList(growable: false), <dynamic, dynamic>{}, null); |
19 static method main() → dynamic { | 20 static method main() → dynamic { |
20 self::C c = null; | 21 self::C c = null; |
21 core::print(const self::C::constant()); | 22 core::print(const self::C::constant()); |
22 core::print(invalid-expression); | 23 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()); | 24 core::print(const self::C::constant()); |
24 core::print(new self::C::constant().notEvenAConstructor(null)); | 25 core::print(new self::C::constant().notEvenAConstructor(null)); |
25 } | 26 } |
OLD | NEW |