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
|
=== tests/cases/compiler/staticPropSuper.ts ===
class A {
>A : Symbol(A, Decl(staticPropSuper.ts, 0, 0))
}
class B extends A {
>B : Symbol(B, Decl(staticPropSuper.ts, 1, 1))
>A : Symbol(A, Decl(staticPropSuper.ts, 0, 0))
public static s: number = 9;
>s : Symbol(B.s, Decl(staticPropSuper.ts, 3, 19))
constructor() {
var x = 1; // should not error
>x : Symbol(x, Decl(staticPropSuper.ts, 7, 11))
super();
>super : Symbol(A, Decl(staticPropSuper.ts, 0, 0))
}
}
class C extends A {
>C : Symbol(C, Decl(staticPropSuper.ts, 10, 1))
>A : Symbol(A, Decl(staticPropSuper.ts, 0, 0))
public p: number = 10;
>p : Symbol(C.p, Decl(staticPropSuper.ts, 12, 19))
constructor() {
var x = 1; // should error
>x : Symbol(x, Decl(staticPropSuper.ts, 16, 11))
}
}
class D extends A {
>D : Symbol(D, Decl(staticPropSuper.ts, 18, 1))
>A : Symbol(A, Decl(staticPropSuper.ts, 0, 0))
private p: number = 11;
>p : Symbol(D.p, Decl(staticPropSuper.ts, 20, 19))
constructor() {
var x = 1; // should error
>x : Symbol(x, Decl(staticPropSuper.ts, 24, 11))
}
}
class E extends A {
>E : Symbol(E, Decl(staticPropSuper.ts, 26, 1))
>A : Symbol(A, Decl(staticPropSuper.ts, 0, 0))
p: number = 12;
>p : Symbol(E.p, Decl(staticPropSuper.ts, 28, 19))
constructor() {
var x = 1; // should error
>x : Symbol(x, Decl(staticPropSuper.ts, 32, 11))
}
}
|