blob: 73adfd154ed200e169703f11c69d45cdeac90a8a [file] [log] [blame]
library test;
//
// Problems in library:
//
// pkg/front_end/testcases/inference/circular_reference_via_closures.dart:9:5: Error: Can't infer the type of 'y': circularity found during type inference.
// Specify the type explicitly.
// var y = /*@returnType=invalid-type*/ () => x;
// ^
//
// pkg/front_end/testcases/inference/circular_reference_via_closures.dart:8:5: Error: Can't infer the type of 'x': circularity found during type inference.
// Specify the type explicitly.
// var x = /*@returnType=invalid-type*/ () => y;
// ^
//
import self as self;
static field invalid-type x = (() invalid-type => self::y) as{TypeError} invalid-type;
static field invalid-type y = (() invalid-type => self::x) as{TypeError} invalid-type;
static method main() dynamic {}