20 lines
641 B
Text
20 lines
641 B
Text
=== tests/cases/compiler/genericClasses0.ts ===
|
|
class C<T> {
|
|
>C : Symbol(C, Decl(genericClasses0.ts, 0, 0))
|
|
>T : Symbol(T, Decl(genericClasses0.ts, 0, 8))
|
|
|
|
public x: T;
|
|
>x : Symbol(x, Decl(genericClasses0.ts, 0, 12))
|
|
>T : Symbol(T, Decl(genericClasses0.ts, 0, 8))
|
|
}
|
|
|
|
var v1 : C<string>;
|
|
>v1 : Symbol(v1, Decl(genericClasses0.ts, 4, 3))
|
|
>C : Symbol(C, Decl(genericClasses0.ts, 0, 0))
|
|
|
|
var y = v1.x; // should be 'string'
|
|
>y : Symbol(y, Decl(genericClasses0.ts, 6, 3))
|
|
>v1.x : Symbol(C.x, Decl(genericClasses0.ts, 0, 12))
|
|
>v1 : Symbol(v1, Decl(genericClasses0.ts, 4, 3))
|
|
>x : Symbol(C.x, Decl(genericClasses0.ts, 0, 12))
|
|
|