library /*isNonNullableByDefault*/; // // Problems in library: // // pkg/front_end/testcases/general/function_invocation_bounds.dart:9:8: Error: Inferred type argument 'String' doesn't conform to the bound 'num' of the type variable 'T' on 'local'. // Try specifying type arguments explicitly so that they conform to the bounds. // local(""); // ^ // // pkg/front_end/testcases/general/function_invocation_bounds.dart:10:8: Error: Type argument 'String' doesn't conform to the bound 'num' of the type variable 'T' on 'local'. // Try changing type arguments so that they conform to the bounds. // local(throw ''); // ^ // // pkg/front_end/testcases/general/function_invocation_bounds.dart:13:8: Error: Expected 1 type arguments. // local(throw ''); // ^ // // pkg/front_end/testcases/general/function_invocation_bounds.dart:15:4: Error: Inferred type argument 'String' doesn't conform to the bound 'num' of the type variable 'T' on 'call'. // Try specifying type arguments explicitly so that they conform to the bounds. // f(""); // ^ // // pkg/front_end/testcases/general/function_invocation_bounds.dart:16:4: Error: Type argument 'String' doesn't conform to the bound 'num' of the type variable 'T' on 'call'. // Try changing type arguments so that they conform to the bounds. // f(throw ''); // ^ // // pkg/front_end/testcases/general/function_invocation_bounds.dart:19:4: Error: Expected 1 type arguments. // f(throw ''); // ^ // import self as self; import "dart:core" as core; typedef G = (T%) → T%; static method test() → dynamic { function local(T t) → T return t; local.call(""); local.call(throw ""); local.call(0); local.call(throw ""); let final Never #t1 = invalid-expression "pkg/front_end/testcases/general/function_invocation_bounds.dart:13:8: Error: Expected 1 type arguments. local(throw ''); ^" in local.call(throw ""); (T) → T f = local; f.call(""); f.call(throw ""); f.call(0); f.call(throw ""); let final Never #t2 = invalid-expression "pkg/front_end/testcases/general/function_invocation_bounds.dart:19:4: Error: Expected 1 type arguments. f(throw ''); ^" in f.call(throw ""); } static method main() → dynamic {}