9 lines
310 B
Plaintext
9 lines
310 B
Plaintext
|
==== tests/cases/compiler/parameterPropertyInConstructor1.ts (1 errors) ====
|
||
|
declare module mod {
|
||
|
class Customers {
|
||
|
constructor(public names: string);
|
||
|
~~~~~~~~~~~~~~~~~~~~
|
||
|
!!! A parameter property is only allowed in a constructor implementation.
|
||
|
}
|
||
|
}
|
||
|
|