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

18 lines
475 B
Plaintext

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