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

27 lines
534 B
TypeScript

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