blob: a51da21f0cd7c2d8bba1cde652faa241688d7fb4 [file] [log] [blame]
library test;
import self as self;
import "dart:core" as core;
static field dynamic x = () dynamic => self::f() ?{dynamic} self::y : self::z;
static field dynamic y = () dynamic => self::x;
static field () dynamic z = () dynamic => self::x;
static const field dynamic #errors = const <dynamic>["pkg/front_end/testcases/inference_new/strongly_connected_component.dart:19:67: Error: Can't infer the type of 'y': circularity found during type inference.\nSpecify the type explicitly.\nvar /*@topType=dynamic*/ /*@error=CantInferTypeDueToCircularity*/ y = /*@returnType=dynamic*/ () =>\n ^", "pkg/front_end/testcases/inference_new/strongly_connected_component.dart:17:67: Error: Can't infer the type of 'x': circularity found during type inference.\nSpecify the type explicitly.\nvar /*@topType=dynamic*/ /*@error=CantInferTypeDueToCircularity*/ x = /*@returnType=dynamic*/ () =>\n ^"]/* from null */;
static method f() core::bool
return null;
static method main() dynamic {}