| 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:7:11: Error: Can't access 'this' in a field initializer. |
| // var x = this; |
| // ^^^^ |
| // |
| // pkg/front_end/testcases/general/issue38961.dart:6:15: Error: Can't access 'this' in a field initializer. |
| // dynamic 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::•() |
| ; |
| } |