24 lines
687 B
Text
24 lines
687 B
Text
=== tests/cases/compiler/es6ClassSuperCodegenBug.ts ===
|
|
class A {
|
|
>A : Symbol(A, Decl(es6ClassSuperCodegenBug.ts, 0, 0))
|
|
|
|
constructor(str1:string, str2:string) {}
|
|
>str1 : Symbol(str1, Decl(es6ClassSuperCodegenBug.ts, 1, 13))
|
|
>str2 : Symbol(str2, Decl(es6ClassSuperCodegenBug.ts, 1, 25))
|
|
}
|
|
class B extends A {
|
|
>B : Symbol(B, Decl(es6ClassSuperCodegenBug.ts, 2, 1))
|
|
>A : Symbol(A, Decl(es6ClassSuperCodegenBug.ts, 0, 0))
|
|
|
|
constructor() {
|
|
if (true) {
|
|
super('a1', 'b1');
|
|
>super : Symbol(A, Decl(es6ClassSuperCodegenBug.ts, 0, 0))
|
|
|
|
} else {
|
|
super('a2', 'b2');
|
|
>super : Symbol(A, Decl(es6ClassSuperCodegenBug.ts, 0, 0))
|
|
}
|
|
}
|
|
}
|
|
|