==== tests/cases/compiler/genericCallbackInvokedInsideItsContainingFunction1.ts (8 errors) ==== function foo(x:T, y:U, f: (v: T) => U) { var r1 = f(1); ~~~~~~~~~~~~ !!! Supplied parameters do not match any signature of call target. var r2 = f(1); ~ !!! Argument of type 'number' is not assignable to parameter of type 'T'. var r3 = f(null); ~~~~~~~~~~~~ !!! Supplied parameters do not match any signature of call target. var r4 = f(null); var r11 = f(x); var r21 = f(x); ~~~~~~~~~~~~ !!! Supplied parameters do not match any signature of call target. var r31 = f(null); ~~~~~~~~~~~~ !!! Supplied parameters do not match any signature of call target. var r41 = f(null); var r12 = f(y); ~ !!! Argument of type 'U' is not assignable to parameter of type 'T'. var r22 = f(y); ~~~~~~~~~~~~ !!! Supplied parameters do not match any signature of call target. var r32 = f(null); ~~~~~~~~~~~~ !!! Supplied parameters do not match any signature of call target. var r42 = f(null); }