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
|
=== tests/cases/conformance/types/typeParameters/typeParameterLists/staticMembersUsingClassTypeParameter.ts ===
// BUG 745747
class C<T> {
>C : Symbol(C, Decl(staticMembersUsingClassTypeParameter.ts, 0, 0))
>T : Symbol(T, Decl(staticMembersUsingClassTypeParameter.ts, 1, 8))
static x: T;
>x : Symbol(C.x, Decl(staticMembersUsingClassTypeParameter.ts, 1, 12))
static f(x: T) {}
>f : Symbol(C.f, Decl(staticMembersUsingClassTypeParameter.ts, 2, 16))
>x : Symbol(x, Decl(staticMembersUsingClassTypeParameter.ts, 3, 13))
}
class C2<T, U> {
>C2 : Symbol(C2, Decl(staticMembersUsingClassTypeParameter.ts, 4, 1))
>T : Symbol(T, Decl(staticMembersUsingClassTypeParameter.ts, 6, 9))
>U : Symbol(U, Decl(staticMembersUsingClassTypeParameter.ts, 6, 11))
static x: U;
>x : Symbol(C2.x, Decl(staticMembersUsingClassTypeParameter.ts, 6, 16))
static f(x: U) { }
>f : Symbol(C2.f, Decl(staticMembersUsingClassTypeParameter.ts, 7, 16))
>x : Symbol(x, Decl(staticMembersUsingClassTypeParameter.ts, 8, 13))
}
class C3<T extends Date> {
>C3 : Symbol(C3, Decl(staticMembersUsingClassTypeParameter.ts, 9, 1))
>T : Symbol(T, Decl(staticMembersUsingClassTypeParameter.ts, 11, 9))
>Date : Symbol(Date, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.scripthost.d.ts, --, --))
static x: T;
>x : Symbol(C3.x, Decl(staticMembersUsingClassTypeParameter.ts, 11, 26))
static f(x: T) { }
>f : Symbol(C3.f, Decl(staticMembersUsingClassTypeParameter.ts, 12, 16))
>x : Symbol(x, Decl(staticMembersUsingClassTypeParameter.ts, 13, 13))
}
|