blob: 0b9c61a1f8f7ae62d063cb33789bf3eb3137c8d2 [file] [log] [blame]
library /*isNonNullableByDefault*/;
//
// Problems in library:
//
// pkg/front_end/testcases/general/issue38961.dart:7:7: Error: 'x' is already declared in this scope.
// var x = this;
// ^
// pkg/front_end/testcases/general/issue38961.dart:6:11: Context: Previous declaration of 'x'.
// dynamic x = this;
// ^
//
// pkg/front_end/testcases/general/issue38961.dart:6:15: Error: Can't access 'this' in a field initializer.
// dynamic x = this;
// ^^^^
//
// pkg/front_end/testcases/general/issue38961.dart:7:11: Error: Can't access 'this' in a field initializer.
// var x = this;
// ^^^^
//
import self as self;
import "dart:core" as core;
class C extends core::Object {
field dynamic x = null;
synthetic constructor •() self::C
: super core::Object::•()
;
}