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
|
=== tests/cases/conformance/classes/members/privateNames/privateNameConstructorSignature.ts ===
interface D {
x: number;
>x : number
}
class C {
>C : C
#x;
>#x : any
static test() {
>test : () => void
new C().#x = 10;
>new C().#x = 10 : 10
>new C().#x : any
>new C() : C
>C : typeof C
>10 : 10
const y = new C();
>y : C
>new C() : C
>C : typeof C
const z = new y();
>z : D
>new y() : D
>y : C
z.x = 123;
>z.x = 123 : 123
>z.x : number
>z : D
>x : number
>123 : 123
}
}
interface C {
new (): D;
}
|