blob: 08ce8a2abd4d1c71150f07fc14b8a6257a609f1d [file]
library;
//
// Problems in library:
//
// pkg/front_end/testcases/coverage/external_test.dart:10:25: Error: An external constructor can't initialize fields.
// Try removing the field initializers, or removing the keyword 'external'.
// external Foo.n24(this.x); // Error
// ^
//
import self as self;
import "dart:core" as core;
class Foo extends core::Object {
field core::int x = 1.{core::int::unary-}(){() core::int};
constructor •() self::Foo
: self::Foo::x = 0, super core::Object::•()
;
external constructor n24(initializing-formal core::int x) self::Foo;
}
Extra constant evaluation status:
Evaluated: InstanceInvocation @ org-dartlang-testcase:///external_test.dart:8:11 -> IntConstant(-1)
Extra constant evaluation: evaluated: 1, effectively constant: 1