blob: e5019cc43469e61fa57cc0b9c19921a01c3adb33 [file] [log] [blame]
library test /*isNonNullableByDefault*/;
//
// Problems in library:
//
// pkg/front_end/testcases/inference_new/dependency_only_if_overloaded.dart:15:5: Error: Can't infer the type of 'a': circularity found during type inference.
// Specify the type explicitly.
// var a = /*@returnType=num*/ () => intValue /*@target=num.+*/ + b;
// ^
//
// pkg/front_end/testcases/inference_new/dependency_only_if_overloaded.dart:21:5: Error: Can't infer the type of 'c': circularity found during type inference.
// Specify the type explicitly.
// var c = /*@returnType=num*/ () => numValue /*@target=num.+*/ + d;
// ^
//
// pkg/front_end/testcases/inference_new/dependency_only_if_overloaded.dart:26:5: Error: Can't infer the type of 'e': circularity found during type inference.
// Specify the type explicitly.
// var e = /*@returnType=double*/ () => doubleValue /*@target=double.+*/ + f;
// ^
//
import self as self;
import "dart:core" as core;
static field core::int intValue;
static field core::num numValue;
static field core::double doubleValue;
static field invalid-type a;
static field dynamic b;
static field invalid-type c;
static field dynamic d;
static field invalid-type e;
static field dynamic f;
static method main() dynamic
;