TypeScript/tests/baselines/reference/contextualTypingWithFixedTypeParameters1.errors.txt
2014-07-12 17:30:19 -07:00

6 lines
375 B
Plaintext

==== tests/cases/compiler/contextualTypingWithFixedTypeParameters1.ts (1 errors) ====
var f10: <T>(x: T, b: () => (a: T) => void, y: T) => T;
f10('', () => a => a.foo, ''); // a is string, fixed by first parameter
~~~
!!! Property 'foo' does not exist on type 'string'.
var r9 = f10('', () => (a => a.foo), 1); // now a should be any