TypeScript/tests/cases/compiler/underscoreThisInDerivedClass02.ts
2016-09-19 18:32:06 +03:00

17 lines
294 B
TypeScript

// @target es5
// Original test intent:
// Errors on '_this' should be reported in derived constructors,
// even if 'super()' is not called.
class C {
constructor() {
return {};
}
}
class D extends C {
constructor() {
var _this = "uh-oh?";
}
}