blob: 4c1044dc9fb0f7ef8539d3fd2638b054a228dcea [file] [log] [blame]
// Formatted problems:
//
// pkg/front_end/testcases/inference/instantiate_tearoff_of_call.dart:10:12: Error: A value of type 'T Function<T>(T)' can't be assigned to a variable of type 'int Function(int)'.
// Try changing the type of the left hand side, or casting the right hand side to 'int Function(int)'.
// func = f.call;
// ^
library test;
import self as self;
import "dart:core" as core;
static method test(<T extends core::Object = dynamic>(T) T f) void {
(core::int) core::int func;
func = let final<BottomType> #t1 = invalid-expression "pkg/front_end/testcases/inference/instantiate_tearoff_of_call.dart:10:12: Error: A value of type 'T Function<T>(T)' can't be assigned to a variable of type 'int Function(int)'.
Try changing the type of the left hand side, or casting the right hand side to 'int Function(int)'.
func = f.call;
^" in f.call as{TypeError} (core::int) → core::int;
}
static method main() → dynamic {}