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
|
=== tests/cases/conformance/salsa/bug24703.js ===
var Common = {};
>Common : typeof Common
>{} : {}
Common.I = class {
>Common.I = class { constructor() { this.i = 1 }} : typeof I
>Common.I : typeof I
>Common : typeof Common
>I : typeof I
>class { constructor() { this.i = 1 }} : typeof I
constructor() {
this.i = 1
>this.i = 1 : 1
>this.i : number
>this : this
>i : number
>1 : 1
}
}
Common.O = class extends Common.I {
>Common.O = class extends Common.I { constructor() { super() this.o = 2 }} : typeof O
>Common.O : typeof O
>Common : typeof Common
>O : typeof O
>class extends Common.I { constructor() { super() this.o = 2 }} : typeof O
>Common.I : I
>Common : typeof Common
>I : typeof I
constructor() {
super()
>super() : void
>super : typeof I
this.o = 2
>this.o = 2 : 2
>this.o : number
>this : this
>o : number
>2 : 2
}
}
var o = new Common.O()
>o : O
>new Common.O() : O
>Common.O : typeof O
>Common : typeof Common
>O : typeof O
var i = new Common.I()
>i : I
>new Common.I() : I
>Common.I : typeof I
>Common : typeof Common
>I : typeof I
o.i
>o.i : number
>o : O
>i : number
o.o
>o.o : number
>o : O
>o : number
i.i
>i.i : number
>i : I
>i : number
|