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

15 lines
359 B
Plaintext

==== 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.
}
}