File: selfReferentialFunctionType.symbols

package info (click to toggle)
node-typescript 5.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 497,488 kB
  • sloc: javascript: 2,107,274; makefile: 6; sh: 1
file content (25 lines) | stat: -rw-r--r-- 1,231 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
//// [tests/cases/compiler/selfReferentialFunctionType.ts] ////

=== 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))