blob: 36343aaa84e467654740f8514fac1bc2dc181538 [file] [log] [blame]
// Unhandled errors:
//
// pkg/front_end/testcases/rasta/malformed_const_constructor.dart:8:5: Error: Expected '{' before this.
// : x = 'foo'
// ^
//
// pkg/front_end/testcases/rasta/malformed_const_constructor.dart:6:3: Error: A const constructor can't have a body.
// Try removing either the 'const' keyword or the body.
// const A()
// ^^^^^
//
// pkg/front_end/testcases/rasta/malformed_const_constructor.dart:8:5: Error: Expected a class member, but got ':'.
// : x = 'foo'
// ^
//
// pkg/front_end/testcases/rasta/malformed_const_constructor.dart:8:7: Error: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
// Try adding the name of the type of the variable or the keyword 'var'.
// : x = 'foo'
// ^
library;
import self as self;
import "dart:core" as core;
class A extends core::Object {
const constructor •() void
: final dynamic #t1 = invalid-expression "pkg/front_end/testcases/rasta/malformed_const_constructor.dart:7:7: Error: Setter not found: 'x'.\n : x = 'foo'\n ^"
;
}
static method main() dynamic {
const self::A::•();
new self::A::•();
}