TypeScript/tests/cases/compiler/checkSuperCallBeforeThisAccessing4.ts
2015-11-30 09:43:10 -08:00

19 lines
376 B
TypeScript

class Based { }
class Derived extends Based {
public x: number;
constructor() {
(() => {
this; // No error
});
() => {
this; // No error
};
(() => {
this; // No error
})();
super();
super();
this.x = 10;
var that = this;
}
}