7 lines
255 B
Plaintext
7 lines
255 B
Plaintext
==== tests/cases/compiler/thisInConstructorParameter1.ts (1 errors) ====
|
|
class Foo {
|
|
public y;
|
|
constructor(x = this.y) { }
|
|
~~~~
|
|
!!! error TS2333: 'this' cannot be referenced in constructor arguments.
|
|
} |