7 lines
No EOL
241 B
Text
7 lines
No EOL
241 B
Text
==== tests/cases/compiler/thisInConstructorParameter1.ts (1 errors) ====
|
|
class Foo {
|
|
public y;
|
|
constructor(x = this.y) { }
|
|
~~~~
|
|
!!! 'this' cannot be referenced in constructor arguments.
|
|
} |