blob: 7729a313626ceb2a20fba21c8960979b0c6c71bb [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++ {}
// ^
//
// pkg/front_end/testcases/regress/issue_31192.dart:7:17: Error: '' isn't an instance field of this class.
// 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 •() 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 {}