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 •() → self::C | 6 constructor •() → void |
7 : super core::Object::•(); | 7 : super core::Object::•() |
| 8 ; |
8 method test() → dynamic { | 9 method test() → dynamic { |
9 self::use(invalid-expression); | 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 ^"))); |
10 } | 11 } |
11 } | 12 } |
| 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 */; |
12 static method use(dynamic _) → dynamic | 14 static method use(dynamic _) → dynamic |
13 return null; | 15 return null; |
14 static method main() → dynamic { | 16 static method main() → dynamic { |
15 new self::C::•().test(); | 17 new self::C::•().test(); |
16 } | 18 } |
OLD | NEW |