Files
tsgo/testdata/baselines/reference/submodule/compiler/checkSuperCallBeforeThisAccessing8.errors.txt

19 lines
751 B
Plaintext

checkSuperCallBeforeThisAccessing8.ts(2,17): error TS7019: Rest parameter 'arg' implicitly has an 'any[]' type.
checkSuperCallBeforeThisAccessing8.ts(7,20): error TS17009: 'super' must be called before accessing 'this' in the constructor of a derived class.
==== checkSuperCallBeforeThisAccessing8.ts (2 errors) ====
class Base {
constructor(...arg) {
~~~~~~
!!! error TS7019: Rest parameter 'arg' implicitly has an 'any[]' type.
}
}
class Super extends Base {
constructor() {
var that = this;
~~~~
!!! error TS17009: 'super' must be called before accessing 'this' in the constructor of a derived class.
super();
}
}