File: inheritedGenericCallSignature.symbols

package info (click to toggle)
node-typescript 3.3.3333-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 324,548 kB
  • sloc: makefile: 6; sh: 3
file content (49 lines) | stat: -rw-r--r-- 1,724 bytes parent folder | download | duplicates (5)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
=== tests/cases/compiler/inheritedGenericCallSignature.ts ===
interface I1<T> {
>I1 : Symbol(I1, Decl(inheritedGenericCallSignature.ts, 0, 0))
>T : Symbol(T, Decl(inheritedGenericCallSignature.ts, 0, 13))

    (a: T): T;
>a : Symbol(a, Decl(inheritedGenericCallSignature.ts, 2, 5))
>T : Symbol(T, Decl(inheritedGenericCallSignature.ts, 0, 13))
>T : Symbol(T, Decl(inheritedGenericCallSignature.ts, 0, 13))

}


interface Object {}
>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(inheritedGenericCallSignature.ts, 4, 1))

 

interface I2<T> extends I1<T[]> {
>I2 : Symbol(I2, Decl(inheritedGenericCallSignature.ts, 7, 19))
>T : Symbol(T, Decl(inheritedGenericCallSignature.ts, 11, 13))
>I1 : Symbol(I1, Decl(inheritedGenericCallSignature.ts, 0, 0))
>T : Symbol(T, Decl(inheritedGenericCallSignature.ts, 11, 13))

    b: T;
>b : Symbol(I2.b, Decl(inheritedGenericCallSignature.ts, 11, 33))
>T : Symbol(T, Decl(inheritedGenericCallSignature.ts, 11, 13))

}

 

var x: I2<Date>;
>x : Symbol(x, Decl(inheritedGenericCallSignature.ts, 19, 3))
>I2 : Symbol(I2, Decl(inheritedGenericCallSignature.ts, 7, 19))
>Date : Symbol(Date, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.scripthost.d.ts, --, --))

 

var y = x(undefined);
>y : Symbol(y, Decl(inheritedGenericCallSignature.ts, 23, 3))
>x : Symbol(x, Decl(inheritedGenericCallSignature.ts, 19, 3))
>undefined : Symbol(undefined)

y.length;  // should not error
>y.length : Symbol(Array.length, Decl(lib.es5.d.ts, --, --))
>y : Symbol(y, Decl(inheritedGenericCallSignature.ts, 23, 3))
>length : Symbol(Array.length, Decl(lib.es5.d.ts, --, --))