blob: 56ef48bf9028c85cedbc6dfe1456a7e5d11e5271 [file] [log] [blame]
library test;
import self as self;
static field dynamic x = () dynamic => self::y;
static field dynamic y = () dynamic => self::x;
static const field dynamic #errors = const <dynamic>["pkg/front_end/testcases/inference/circular_reference_via_closures.dart:10:67: Error: Can't infer the type of 'y': circularity found during type inference.
Specify the type explicitly.
var /*@topType=dynamic*/ /*@error=CantInferTypeDueToCircularity*/ y = /*@returnType=dynamic*/ () =>
^", "pkg/front_end/testcases/inference/circular_reference_via_closures.dart:8: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*/ () =>
^"]/* from null */;
static method main() → dynamic {}