blob: db4967d748515b2ec417516bd304074b52876faa [file] [log] [blame]
// Errors:
//
// pkg/front_end/testcases/inference_new/infer_instance_field_ref_circular.dart:11:69: Error: Can't infer the type of 'b': circularity found during type inference.
// Specify the type explicitly.
// var /*@topType=dynamic*/ /*@error=CantInferTypeDueToCircularity*/ b = /*@returnType=dynamic*/ () =>
// ^
//
// pkg/front_end/testcases/inference_new/infer_instance_field_ref_circular.dart:17:67: Error: Can't infer the type of 'x': circularity found during type inference.
// Specify the type explicitly.
// var /*@topType=dynamic*/ /*@error=CantInferTypeDueToCircularity*/ x = /*@returnType=dynamic*/ () =>
// ^
library test;
import self as self;
import "dart:core" as core;
class A extends core::Object {
field dynamic b = () dynamic => self::x;
field () dynamic c = () dynamic => self::x;
synthetic constructor •() void
: super core::Object::•()
;
}
static field self::A a = new self::A::•();
static field dynamic x = () dynamic => self::a.{self::A::b};
static field () () dynamic y = () () dynamic => self::a.{self::A::c};
static method main() dynamic {}