blob: 226845f84fa553c00c94210ebacb3ec84cd085e2 [file] [log] [blame]
// Errors:
//
// pkg/front_end/testcases/regress/issue_31155.dart:11:19: Error: Expected ';' before this.
// var f = Map<A, B> {};
// ^
//
// pkg/front_end/testcases/regress/issue_31155.dart:11:19: Error: Operator declarations must be preceeded by the keyword 'operator'.
// Try adding the keyword 'operator'.
// var f = Map<A, B> {};
// ^
//
// pkg/front_end/testcases/regress/issue_31155.dart:11:19: Error: A method declaration needs an explicit list of parameters.
// Try adding a parameter list to the method declaration.
// var f = Map<A, B> {};
// ^
//
// pkg/front_end/testcases/regress/issue_31155.dart:11:19: Error: Operator '>' should have exactly one parameter.
// var f = Map<A, B> {};
// ^
//
// pkg/front_end/testcases/regress/issue_31155.dart:11:23: Error: Expected a class member, but got ';'.
// var f = Map<A, B> {};
// ^
//
// pkg/front_end/testcases/regress/issue_31155.dart:11:11: Error: A function expression can't have a name.
// var f = Map<A, B> {};
// ^^^
//
// pkg/front_end/testcases/regress/issue_31155.dart:11:14: Error: A function declaration needs an explicit list of parameters.
// Try adding a parameter list to the function declaration.
// var f = Map<A, B> {};
// ^
//
// pkg/front_end/testcases/regress/issue_31155.dart:11:14: Error: Expected a function body, but got '<'.
// var f = Map<A, B> {};
// ^
library;
import self as self;
import "dart:core" as core;
class A extends core::Object {
synthetic constructor •() void
: super core::Object::•()
;
}
class B extends core::Object {
synthetic constructor •() void
: super core::Object::•()
;
}
class C extends core::Object {
field dynamic f = core::Map<dynamic, dynamic>.<(self::A);
field dynamic B = null;
synthetic constructor •() void
: super core::Object::•()
;
operator >() dynamic {}
}
static method main() void {}