| // Unhandled errors: |
| // |
| // pkg/front_end/testcases/regress/issue_31183.dart:6:12: Error: Unexpected token 'unary'. |
| // operator unary- => 0; |
| // ^^^^^ |
| // |
| // pkg/front_end/testcases/regress/issue_31183.dart:6:17: Error: A method declaration needs an explicit list of parameters. |
| // Try adding a parameter list to the method declaration. |
| // operator unary- => 0; |
| // ^ |
| |
| library; |
| import self as self; |
| import "dart:core" as core; |
| |
| class C extends core::Object { |
| synthetic constructor •() → self::C |
| : super core::Object::•() |
| ; |
| operator unary-() → dynamic |
| return 0; |
| } |
| static method main() → dynamic { |
| new self::C::•(); |
| } |