10 lines
413 B
Plaintext
10 lines
413 B
Plaintext
tests/cases/compiler/parameterPropertyInConstructor3.ts(2,22): error TS2398: 'constructor' cannot be used as a parameter property name.
|
|
|
|
|
|
==== tests/cases/compiler/parameterPropertyInConstructor3.ts (1 errors) ====
|
|
class Foo {
|
|
constructor(public constructor: string) {}
|
|
~~~~~~~~~~~
|
|
!!! error TS2398: 'constructor' cannot be used as a parameter property name.
|
|
}
|
|
|