| library; |
| // |
| // Problems in library: |
| // |
| // pkg/front_end/testcases/rasta/typedef.dart:9:3: Error: Can't assign to a type literal. |
| // Foo = null; |
| // ^^^ |
| // |
| // pkg/front_end/testcases/rasta/typedef.dart:10:3: Error: Can't assign to a type literal. |
| // Foo ??= null; |
| // ^^^ |
| // |
| // pkg/front_end/testcases/rasta/typedef.dart:11:3: Error: Method not found: 'Foo'. |
| // Foo(); |
| // ^^^ |
| // |
| import self as self; |
| import "dart:core" as core; |
| |
| typedef Foo = () →* void; |
| static method main() → dynamic { |
| core::print(() →* void); |
| invalid-expression "pkg/front_end/testcases/rasta/typedef.dart:9:3: Error: Can't assign to a type literal. |
| Foo = null; |
| ^^^"; |
| () →* void.{core::Object::==}(null) ?{dynamic} invalid-expression "pkg/front_end/testcases/rasta/typedef.dart:10:3: Error: Can't assign to a type literal. |
| Foo ??= null; |
| ^^^" : null; |
| invalid-expression "pkg/front_end/testcases/rasta/typedef.dart:11:3: Error: Method not found: 'Foo'. |
| Foo(); |
| ^^^"; |
| } |