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

10 lines
387 B
Plaintext
Raw Normal View History

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