blob: be2074861836a793fbd01b3d892c4be5dcd9d518 [file] [log] [blame]
// Formatted problems:
//
// pkg/front_end/testcases/regress/issue_31192.dart:7:17: Error: Expected an assignment after the field name.
// To initialize a field, use the syntax 'name = value'.
// Increment() : x++ {}
// ^
//
// pkg/front_end/testcases/regress/issue_31192.dart:7:17: Error: Can't access 'this' in a field initializer to read 'x'.
// Increment() : x++ {}
// ^
// Unhandled errors:
//
// pkg/front_end/testcases/regress/issue_31192.dart:7:17: Error: Expected an assignment after the field name.
// To initialize a field, use the syntax 'name = value'.
// Increment() : x++ {}
// ^
library;
import self as self;
import "dart:core" as core;
class Increment extends core::Object {
field core::int x = null;
constructor •() self::Increment
: final dynamic #t1 = invalid-expression "pkg/front_end/testcases/regress/issue_31192.dart:7:17: Error: This couldn't be parsed.
Increment() : x++ {}
^" {}
}
static method main() → dynamic {}