TypeScript/tests/baselines/reference/thisInSuperCall1.errors.txt
2014-09-11 16:11:08 -07:00

13 lines
338 B
Plaintext

==== tests/cases/compiler/thisInSuperCall1.ts (1 errors) ====
class Base {
constructor(a: any) {}
}
class Foo extends Base {
constructor(public x: number) {
super(this);
~~~~
!!! error TS2332: 'this' cannot be referenced in current location.
}
}