1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
=== tests/cases/compiler/selfReferentialFunctionType.ts ===
declare function f<T>(args: typeof f<T>): T;
>f : Symbol(f, Decl(selfReferentialFunctionType.ts, 0, 0))
>T : Symbol(T, Decl(selfReferentialFunctionType.ts, 0, 19))
>args : Symbol(args, Decl(selfReferentialFunctionType.ts, 0, 22))
>f : Symbol(f, Decl(selfReferentialFunctionType.ts, 0, 0))
>T : Symbol(T, Decl(selfReferentialFunctionType.ts, 0, 19))
>T : Symbol(T, Decl(selfReferentialFunctionType.ts, 0, 19))
declare function g<T = typeof g>(args: T): T;
>g : Symbol(g, Decl(selfReferentialFunctionType.ts, 0, 44))
>T : Symbol(T, Decl(selfReferentialFunctionType.ts, 1, 19))
>g : Symbol(g, Decl(selfReferentialFunctionType.ts, 0, 44))
>args : Symbol(args, Decl(selfReferentialFunctionType.ts, 1, 33))
>T : Symbol(T, Decl(selfReferentialFunctionType.ts, 1, 19))
>T : Symbol(T, Decl(selfReferentialFunctionType.ts, 1, 19))
declare function h<T>(): typeof h<T>;
>h : Symbol(h, Decl(selfReferentialFunctionType.ts, 1, 45))
>T : Symbol(T, Decl(selfReferentialFunctionType.ts, 2, 19))
>h : Symbol(h, Decl(selfReferentialFunctionType.ts, 1, 45))
>T : Symbol(T, Decl(selfReferentialFunctionType.ts, 2, 19))
|