32 lines
504 B
Text
32 lines
504 B
Text
=== tests/cases/compiler/es6ClassSuperCodegenBug.ts ===
|
|
class A {
|
|
>A : A
|
|
|
|
constructor(str1:string, str2:string) {}
|
|
>str1 : string
|
|
>str2 : string
|
|
}
|
|
class B extends A {
|
|
>B : B
|
|
>A : A
|
|
|
|
constructor() {
|
|
if (true) {
|
|
>true : boolean
|
|
|
|
super('a1', 'b1');
|
|
>super('a1', 'b1') : void
|
|
>super : typeof A
|
|
>'a1' : string
|
|
>'b1' : string
|
|
|
|
} else {
|
|
super('a2', 'b2');
|
|
>super('a2', 'b2') : void
|
|
>super : typeof A
|
|
>'a2' : string
|
|
>'b2' : string
|
|
}
|
|
}
|
|
}
|
|
|