TypeScript/tests/baselines/reference/genericFunctionHasFreshTypeArgs.types
2015-04-13 14:29:37 -07:00

22 lines
1.1 KiB
Plaintext

=== tests/cases/compiler/genericFunctionHasFreshTypeArgs.ts ===
function f(p: <T>(x: T) => void) { };
>f : (p: <T>(x: T) => void) => void, Symbol(f, Decl(genericFunctionHasFreshTypeArgs.ts, 0, 0))
>p : <T>(x: T) => void, Symbol(p, Decl(genericFunctionHasFreshTypeArgs.ts, 0, 11))
>T : T, Symbol(T, Decl(genericFunctionHasFreshTypeArgs.ts, 0, 15))
>x : T, Symbol(x, Decl(genericFunctionHasFreshTypeArgs.ts, 0, 18))
>T : T, Symbol(T, Decl(genericFunctionHasFreshTypeArgs.ts, 0, 15))
f(x => f(y => x = y));
>f(x => f(y => x = y)) : void
>f : (p: <T>(x: T) => void) => void, Symbol(f, Decl(genericFunctionHasFreshTypeArgs.ts, 0, 0))
>x => f(y => x = y) : (x: any) => void
>x : any, Symbol(x, Decl(genericFunctionHasFreshTypeArgs.ts, 1, 2))
>f(y => x = y) : void
>f : (p: <T>(x: T) => void) => void, Symbol(f, Decl(genericFunctionHasFreshTypeArgs.ts, 0, 0))
>y => x = y : (y: any) => any
>y : any, Symbol(y, Decl(genericFunctionHasFreshTypeArgs.ts, 1, 9))
>x = y : any
>x : any, Symbol(x, Decl(genericFunctionHasFreshTypeArgs.ts, 1, 2))
>y : any, Symbol(y, Decl(genericFunctionHasFreshTypeArgs.ts, 1, 9))