File: instantiateGenericClassWithZeroTypeArguments.symbols

package info (click to toggle)
node-typescript 2.1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 203,952 kB
  • ctags: 52,987
  • sloc: sh: 11; makefile: 5
file content (34 lines) | stat: -rw-r--r-- 1,497 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
31
32
33
34
=== tests/cases/conformance/types/typeParameters/typeArgumentLists/instantiateGenericClassWithZeroTypeArguments.ts ===
// no errors expected when instantiating a generic type with no type arguments provided

class C<T> {
>C : Symbol(C, Decl(instantiateGenericClassWithZeroTypeArguments.ts, 0, 0))
>T : Symbol(T, Decl(instantiateGenericClassWithZeroTypeArguments.ts, 2, 8))

    x: T;
>x : Symbol(C.x, Decl(instantiateGenericClassWithZeroTypeArguments.ts, 2, 12))
>T : Symbol(T, Decl(instantiateGenericClassWithZeroTypeArguments.ts, 2, 8))
}

var c = new C();
>c : Symbol(c, Decl(instantiateGenericClassWithZeroTypeArguments.ts, 6, 3))
>C : Symbol(C, Decl(instantiateGenericClassWithZeroTypeArguments.ts, 0, 0))

class D<T, U> {
>D : Symbol(D, Decl(instantiateGenericClassWithZeroTypeArguments.ts, 6, 16))
>T : Symbol(T, Decl(instantiateGenericClassWithZeroTypeArguments.ts, 8, 8))
>U : Symbol(U, Decl(instantiateGenericClassWithZeroTypeArguments.ts, 8, 10))

    x: T
>x : Symbol(D.x, Decl(instantiateGenericClassWithZeroTypeArguments.ts, 8, 15))
>T : Symbol(T, Decl(instantiateGenericClassWithZeroTypeArguments.ts, 8, 8))

    y: U
>y : Symbol(D.y, Decl(instantiateGenericClassWithZeroTypeArguments.ts, 9, 8))
>U : Symbol(U, Decl(instantiateGenericClassWithZeroTypeArguments.ts, 8, 10))
}

var d = new D();
>d : Symbol(d, Decl(instantiateGenericClassWithZeroTypeArguments.ts, 13, 3))
>D : Symbol(D, Decl(instantiateGenericClassWithZeroTypeArguments.ts, 6, 16))