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 Foo extends core::Object { | 5 class Foo extends core::Object { |
6 constructor •() → void | 6 constructor •() → dynamic |
7 : super core::Object::•() | 7 : super core::Object::•() |
8 const core::_ConstantExpressionError::•()._throw(new core::_CompileTimeError
::•("pkg/front_end/testcases/rasta/bad_redirection.dart:6:11: Error: Can't retur
n from a constructor.\n Foo() = Bar;\n ^")); | 8 invalid-statement; |
9 } | 9 } |
10 class Bar extends self::Foo { | 10 class Bar extends self::Foo { |
11 static factory •() → self::Bar | 11 static factory •() → self::Bar |
12 return null; | 12 return null; |
13 } | 13 } |
14 const field dynamic #errors = const <dynamic>["pkg/front_end/testcases/rasta/bad
_redirection.dart:6:9: Error: Expected a function body or '=>'.\n Foo() = Bar;\
n ^"]/* from null */; | |
15 static method main() → dynamic { | 14 static method main() → dynamic { |
16 new self::Foo::•(); | 15 new self::Foo::•(); |
17 } | 16 } |
OLD | NEW |