TypeScript/tests/cases/compiler/contextualTypingWithFixedTypeParameters1.ts
2014-10-10 14:41:14 -07:00

3 lines
153 B
TypeScript

var f10: <T>(x: T, b: () => (a: T) => void, y: T) => T;
f10('', () => a => a.foo, ''); // a is string
var r9 = f10('', () => (a => a.foo), 1); // error