TypeScript/tests/baselines/reference/thisInConstructorParameter1.errors.txt

7 lines
241 B
Plaintext
Raw Normal View History

2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/thisInConstructorParameter1.ts (1 errors) ====
class Foo {
public y;
constructor(x = this.y) { }
~~~~
!!! 'this' cannot be referenced in constructor arguments.
}