35 lines
1.1 KiB
Text
35 lines
1.1 KiB
Text
=== tests/cases/compiler/classExpressionTest1.ts ===
|
|
function M() {
|
|
>M : Symbol(M, Decl(classExpressionTest1.ts, 0, 0))
|
|
|
|
class C<X> {
|
|
>C : Symbol(C, Decl(classExpressionTest1.ts, 0, 14))
|
|
>X : Symbol(X, Decl(classExpressionTest1.ts, 1, 12))
|
|
|
|
f<T>() {
|
|
>f : Symbol(f, Decl(classExpressionTest1.ts, 1, 16))
|
|
>T : Symbol(T, Decl(classExpressionTest1.ts, 2, 10))
|
|
|
|
var t: T;
|
|
>t : Symbol(t, Decl(classExpressionTest1.ts, 3, 15))
|
|
>T : Symbol(T, Decl(classExpressionTest1.ts, 2, 10))
|
|
|
|
var x: X;
|
|
>x : Symbol(x, Decl(classExpressionTest1.ts, 4, 15))
|
|
>X : Symbol(X, Decl(classExpressionTest1.ts, 1, 12))
|
|
|
|
return { t, x };
|
|
>t : Symbol(t, Decl(classExpressionTest1.ts, 5, 20))
|
|
>x : Symbol(x, Decl(classExpressionTest1.ts, 5, 23))
|
|
}
|
|
}
|
|
|
|
var v = new C<number>();
|
|
>v : Symbol(v, Decl(classExpressionTest1.ts, 9, 7))
|
|
>C : Symbol(C, Decl(classExpressionTest1.ts, 0, 14))
|
|
|
|
return v.f<string>();
|
|
>v.f : Symbol(C.f, Decl(classExpressionTest1.ts, 1, 16))
|
|
>v : Symbol(v, Decl(classExpressionTest1.ts, 9, 7))
|
|
>f : Symbol(C.f, Decl(classExpressionTest1.ts, 1, 16))
|
|
}
|