==== tests/cases/compiler/typeAssertionToGenericFunctionType.ts (2 errors) ==== var x = { a: < (x: T) => T > ((x: any) => 1), b: (x: T) => { x } } x.a(1); // bug was that this caused 'Could not find symbol T' on return type T in the type assertion on x.a's definition ~ !!! Argument of type 'number' is not assignable to parameter of type 'string'. x.b(); // error ~~~~~~~~~~~~~ !!! Supplied parameters do not match any signature of call target.