| 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(#C1); |
| invalid-expression "pkg/front_end/testcases/rasta/typedef.dart:9:3: Error: Can't assign to a type literal. |
| Foo = null; |
| ^^^"; |
| (#C1) == 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(); |
| ^^^"; |
| } |
| |
| constants { |
| #C1 = TypeLiteralConstant(() →* void) |
| } |