File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -5410,11 +5410,27 @@ export class Compiler extends DiagnosticEmitter {
5410
5410
( < Class > parent ) . type ,
5411
5411
"this"
5412
5412
) ;
5413
+ let parentBase = ( < Class > parent ) . base ;
5414
+ if ( parentBase ) {
5415
+ flow . addScopedLocalAlias (
5416
+ getGetLocalIndex ( thisArg ) ,
5417
+ parentBase . type ,
5418
+ "super"
5419
+ ) ;
5420
+ }
5413
5421
} else {
5414
5422
let thisLocal = flow . addScopedLocal ( ( < Class > parent ) . type , "this" , false ) ;
5415
5423
body . push (
5416
5424
module . createSetLocal ( thisLocal . index , thisArg )
5417
5425
) ;
5426
+ let parentBase = ( < Class > parent ) . base ;
5427
+ if ( parentBase ) {
5428
+ flow . addScopedLocalAlias (
5429
+ thisLocal . index ,
5430
+ parentBase . type ,
5431
+ "super"
5432
+ ) ;
5433
+ }
5418
5434
}
5419
5435
}
5420
5436
var parameterTypes = signature . parameterTypes ;
You can’t perform that action at this time.
0 commit comments