| 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 constructor •() → void | 6 constructor •() → self::C |
| 7 : super core::Object::•() | 7 : super core::Object::•(); |
| 8 ; | |
| 9 method test() → dynamic { | 8 method test() → dynamic { |
| 10 self::use(const core::_ConstantExpressionError::•()._throw(new core::_Compil
eTimeError::•("pkg/front_end/testcases/rasta/issue_000041.dart:7:10: Error: Can'
t use `super` as an expression.\n use(+super);\n ^"))); | 9 self::use(invalid-expression); |
| 11 } | 10 } |
| 12 } | 11 } |
| 13 const field dynamic #errors = const <dynamic>["pkg/front_end/testcases/rasta/iss
ue_000041.dart:7:9: Error: '+' is not a prefix operator. \n use(+super);\n
^"]/* from null */; | |
| 14 static method use(dynamic _) → dynamic | 12 static method use(dynamic _) → dynamic |
| 15 return null; | 13 return null; |
| 16 static method main() → dynamic { | 14 static method main() → dynamic { |
| 17 new self::C::•().test(); | 15 new self::C::•().test(); |
| 18 } | 16 } |
| OLD | NEW |