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 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123
|
=== tests/cases/conformance/types/specifyingTypes/typeQueries/typeQueryOnClass.ts ===
class C<T> {
>C : Symbol(C, Decl(typeQueryOnClass.ts, 0, 0))
>T : Symbol(T, Decl(typeQueryOnClass.ts, 0, 8))
constructor(x: number);
>x : Symbol(x, Decl(typeQueryOnClass.ts, 1, 16))
constructor(x: string);
>x : Symbol(x, Decl(typeQueryOnClass.ts, 2, 16))
constructor(public x) { }
>x : Symbol(C.x, Decl(typeQueryOnClass.ts, 3, 16))
static foo(x: number);
>foo : Symbol(C.foo, Decl(typeQueryOnClass.ts, 3, 29), Decl(typeQueryOnClass.ts, 5, 26), Decl(typeQueryOnClass.ts, 6, 22))
>x : Symbol(x, Decl(typeQueryOnClass.ts, 5, 15))
static foo(x: {});
>foo : Symbol(C.foo, Decl(typeQueryOnClass.ts, 3, 29), Decl(typeQueryOnClass.ts, 5, 26), Decl(typeQueryOnClass.ts, 6, 22))
>x : Symbol(x, Decl(typeQueryOnClass.ts, 6, 15))
static foo(x) { }
>foo : Symbol(C.foo, Decl(typeQueryOnClass.ts, 3, 29), Decl(typeQueryOnClass.ts, 5, 26), Decl(typeQueryOnClass.ts, 6, 22))
>x : Symbol(x, Decl(typeQueryOnClass.ts, 7, 15))
static bar(x) { }
>bar : Symbol(C.bar, Decl(typeQueryOnClass.ts, 7, 21))
>x : Symbol(x, Decl(typeQueryOnClass.ts, 9, 15))
static sa = 1;
>sa : Symbol(C.sa, Decl(typeQueryOnClass.ts, 9, 21))
static sb = () => 1;
>sb : Symbol(C.sb, Decl(typeQueryOnClass.ts, 11, 18))
static get sc() {
>sc : Symbol(C.sc, Decl(typeQueryOnClass.ts, 12, 24), Decl(typeQueryOnClass.ts, 16, 5))
return 1;
}
static set sc(x) {
>sc : Symbol(C.sc, Decl(typeQueryOnClass.ts, 12, 24), Decl(typeQueryOnClass.ts, 16, 5))
>x : Symbol(x, Decl(typeQueryOnClass.ts, 17, 18))
}
static get sd() {
>sd : Symbol(C.sd, Decl(typeQueryOnClass.ts, 18, 5))
return 1;
}
baz(x): string { return ''; }
>baz : Symbol(C.baz, Decl(typeQueryOnClass.ts, 22, 5))
>x : Symbol(x, Decl(typeQueryOnClass.ts, 24, 8))
ia = 1;
>ia : Symbol(C.ia, Decl(typeQueryOnClass.ts, 24, 33))
ib = () => this.ia;
>ib : Symbol(C.ib, Decl(typeQueryOnClass.ts, 26, 11))
>this.ia : Symbol(C.ia, Decl(typeQueryOnClass.ts, 24, 33))
>this : Symbol(C, Decl(typeQueryOnClass.ts, 0, 0))
>ia : Symbol(C.ia, Decl(typeQueryOnClass.ts, 24, 33))
get ic() {
>ic : Symbol(C.ic, Decl(typeQueryOnClass.ts, 27, 23), Decl(typeQueryOnClass.ts, 31, 5))
return 1;
}
set ic(x) {
>ic : Symbol(C.ic, Decl(typeQueryOnClass.ts, 27, 23), Decl(typeQueryOnClass.ts, 31, 5))
>x : Symbol(x, Decl(typeQueryOnClass.ts, 32, 11))
}
get id() {
>id : Symbol(C.id, Decl(typeQueryOnClass.ts, 33, 5))
return 1;
}
}
var c: C<string>;
>c : Symbol(c, Decl(typeQueryOnClass.ts, 41, 3))
>C : Symbol(C, Decl(typeQueryOnClass.ts, 0, 0))
// BUG 820454
var r1: typeof C;
>r1 : Symbol(r1, Decl(typeQueryOnClass.ts, 44, 3))
>C : Symbol(C, Decl(typeQueryOnClass.ts, 0, 0))
var r2: typeof c;
>r2 : Symbol(r2, Decl(typeQueryOnClass.ts, 45, 3))
>c : Symbol(c, Decl(typeQueryOnClass.ts, 41, 3))
class D<T> {
>D : Symbol(D, Decl(typeQueryOnClass.ts, 45, 17))
>T : Symbol(T, Decl(typeQueryOnClass.ts, 47, 8))
constructor(public y?) { }
>y : Symbol(D.y, Decl(typeQueryOnClass.ts, 48, 16))
x: T;
>x : Symbol(D.x, Decl(typeQueryOnClass.ts, 48, 30))
>T : Symbol(T, Decl(typeQueryOnClass.ts, 47, 8))
foo() { }
>foo : Symbol(D.foo, Decl(typeQueryOnClass.ts, 49, 9))
}
var d: D<string>;
>d : Symbol(d, Decl(typeQueryOnClass.ts, 53, 3))
>D : Symbol(D, Decl(typeQueryOnClass.ts, 45, 17))
var r3: typeof D;
>r3 : Symbol(r3, Decl(typeQueryOnClass.ts, 54, 3))
>D : Symbol(D, Decl(typeQueryOnClass.ts, 45, 17))
var r4: typeof d;
>r4 : Symbol(r4, Decl(typeQueryOnClass.ts, 55, 3))
>d : Symbol(d, Decl(typeQueryOnClass.ts, 53, 3))
|