9 lines
No EOL
310 B
Text
9 lines
No EOL
310 B
Text
==== 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.
|
|
}
|
|
}
|
|
|