2014-08-15 23:33:16 +02:00
|
|
|
=== 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) {
|
|
|
|
super('a1', 'b1');
|
|
|
|
>super('a1', 'b1') : void
|
2014-08-28 21:31:37 +02:00
|
|
|
>super : typeof A
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
} else {
|
|
|
|
super('a2', 'b2');
|
|
|
|
>super('a2', 'b2') : void
|
2014-08-28 21:31:37 +02:00
|
|
|
>super : typeof A
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|