==== tests/cases/conformance/expressions/functionCalls/typeArgumentInferenceErrors.ts (4 errors) ==== // Generic call with multiple type parameters and only one used in parameter type annotation function someGenerics1(n: T, m: number) { } someGenerics1(3, 4); // Error ~ !!! Argument of type 'number' is not assignable to parameter of type 'string'. // 2 parameter generic call with argument 1 of type parameter type and argument 2 of function type whose parameter is of type parameter type function someGenerics4(n: T, f: (x: U) => void) { } someGenerics4('', (x: string) => ''); // Error ~~~~~~~~~~~~~~~~~ !!! Argument of type '(x: string) => string' is not assignable to parameter of type '(x: number) => void'. // 2 parameter generic call with argument 2 of type parameter type and argument 1 of function type whose parameter is of type parameter type function someGenerics5(n: T, f: (x: U) => void) { } someGenerics5('', (x: string) => ''); // Error ~~~~~~~~~~~~~~~~~ !!! Argument of type '(x: string) => string' is not assignable to parameter of type '(x: number) => void'. // Generic call with multiple arguments of function types that each have parameters of the same generic type function someGenerics6(a: (a: A) => A, b: (b: A) => A, c: (c: A) => A) { } someGenerics6((n: number) => n, (n: string) => n, (n: number) => n); // Error ~~~~~~~~~~~~~~~~ !!! Argument of type '(n: string) => string' is not assignable to parameter of type '(b: number) => number'.