File: genericFunctions3.symbols

package info (click to toggle)
node-typescript 4.9.5%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 533,908 kB
  • sloc: javascript: 2,018,330; makefile: 7; sh: 1
file content (30 lines) | stat: -rw-r--r-- 1,279 bytes parent folder | download | duplicates (7)
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
26
27
28
29
30
=== tests/cases/compiler/genericFunctions3.ts ===
interface Query<T> {
>Query : Symbol(Query, Decl(genericFunctions3.ts, 0, 0))
>T : Symbol(T, Decl(genericFunctions3.ts, 0, 16))

    foo(x: string): Query<T[]>;
>foo : Symbol(Query.foo, Decl(genericFunctions3.ts, 0, 20))
>x : Symbol(x, Decl(genericFunctions3.ts, 1, 8))
>Query : Symbol(Query, Decl(genericFunctions3.ts, 0, 0))
>T : Symbol(T, Decl(genericFunctions3.ts, 0, 16))
}
 
function from<T>(arg: boolean): Query<T>; // was Error: Overload signature is not compatible with function definition.
>from : Symbol(from, Decl(genericFunctions3.ts, 2, 1), Decl(genericFunctions3.ts, 4, 41))
>T : Symbol(T, Decl(genericFunctions3.ts, 4, 14))
>arg : Symbol(arg, Decl(genericFunctions3.ts, 4, 17))
>Query : Symbol(Query, Decl(genericFunctions3.ts, 0, 0))
>T : Symbol(T, Decl(genericFunctions3.ts, 4, 14))

function from<T>(arg: any): Query<T> {
>from : Symbol(from, Decl(genericFunctions3.ts, 2, 1), Decl(genericFunctions3.ts, 4, 41))
>T : Symbol(T, Decl(genericFunctions3.ts, 5, 14))
>arg : Symbol(arg, Decl(genericFunctions3.ts, 5, 17))
>Query : Symbol(Query, Decl(genericFunctions3.ts, 0, 0))
>T : Symbol(T, Decl(genericFunctions3.ts, 5, 14))

    return undefined;
>undefined : Symbol(undefined)
}