18 lines
No EOL
475 B
Text
18 lines
No EOL
475 B
Text
tests/cases/compiler/thisInSuperCall3.ts(9,15): error TS2332: 'this' cannot be referenced in current location.
|
|
|
|
|
|
==== tests/cases/compiler/thisInSuperCall3.ts (1 errors) ====
|
|
class Base {
|
|
constructor(a: any) {}
|
|
}
|
|
|
|
class Foo extends Base {
|
|
public x: number = 0;
|
|
|
|
constructor() {
|
|
super(this);
|
|
~~~~
|
|
!!! error TS2332: 'this' cannot be referenced in current location.
|
|
}
|
|
}
|
|
|