blob: 94c14722942ad5823477097d6b13572f7d138af8 [file] [log] [blame]
// 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 •() void
: final dynamic #t1 = invalid-expression "pkg/front_end/testcases/regress/issue_31192.dart:7:17: Error: '' isn't an instance field of this class.
Increment() : x++ {}
^" {}
}
static method main() → dynamic {}