TypeScript/tests/cases/compiler/contextualTypingWithFixedTypeParameters1.ts

3 lines
149 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
var f10: <T>(x: T, b: () => (a: T) => void, y: T) => T;
f10('', () => a => a.foo, ''); // a is ""
2014-10-10 23:41:14 +02:00
var r9 = f10('', () => (a => a.foo), 1); // error