blob: 2d3e1e5fa1dfd611807061a78a13f6ee4f3ea220 [file] [log] [blame]
library /*isNonNullableByDefault*/;
//
// Problems in library:
//
// pkg/front_end/testcases/general/issue41252.dart:7:20: Error: 'X' is already declared in this scope.
// static final int X = 0;
// ^
// pkg/front_end/testcases/general/issue41252.dart:6:20: Context: Previous declaration of 'X'.
// static final int X = 0;
// ^
//
// pkg/front_end/testcases/general/issue41252.dart:9:26: Error: Can't use 'X' because it is declared more than once.
// static final int foo = X + 1;
// ^
//
import self as self;
import "dart:core" as core;
class A extends core::Object {
static final field core::int X = null;
static final field core::int foo = invalid-expression "pkg/front_end/testcases/general/issue41252.dart:9:26: Error: Can't use 'X' because it is declared more than once.
static final int foo = X + 1;
^"{dynamic}.+(1) as{TypeError,ForDynamic,ForNonNullableByDefault} core::int;
synthetic constructor •() self::A
: super core::Object::•()
;
}
static method main() dynamic {}