mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
19 lines
751 B
Plaintext
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();
|
|
}
|
|
} |