blob: 777322c50edb0ecbd7d5a3bf1dfac1093a0d51f9 [file] [log] [blame]
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::Type::==}(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();
^^^";
}