TypeScript/tests/baselines/reference/thisInConstructorParameter1.errors.txt
2014-07-12 17:30:19 -07:00

7 lines
241 B
Plaintext

==== tests/cases/compiler/thisInConstructorParameter1.ts (1 errors) ====
class Foo {
public y;
constructor(x = this.y) { }
~~~~
!!! 'this' cannot be referenced in constructor arguments.
}