TypeScript/tests/baselines/reference/thisInSuperCall1.errors.txt
2014-09-12 13:35:07 -07:00

16 lines
454 B
Plaintext

tests/cases/compiler/thisInSuperCall1.ts(7,15): error TS2332: 'this' cannot be referenced in current location.
==== 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.
}
}