Files
tsgo/testdata/baselines/reference/submodule/compiler/checkSuperCallBeforeThisAccessing1.js

27 lines
518 B
TypeScript

//// [tests/cases/compiler/checkSuperCallBeforeThisAccessing1.ts] ////
//// [checkSuperCallBeforeThisAccessing1.ts]
class Based { }
class Derived extends Based {
public x: number;
constructor() {
super();
this;
this.x = 10;
var that = this;
}
}
//// [checkSuperCallBeforeThisAccessing1.js]
"use strict";
class Based {
}
class Derived extends Based {
constructor() {
super();
this;
this.x = 10;
var that = this;
}
}