8 lines
414 B
Plaintext
8 lines
414 B
Plaintext
==== tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration15.ts (2 errors) ====
|
|
class C {
|
|
set Foo(public a: number) { }
|
|
~~~
|
|
!!! error TS2369: A parameter property is only allowed in a constructor implementation.
|
|
~~~~~~~~~~~~~~~~
|
|
!!! error TS2369: A parameter property is only allowed in a constructor implementation.
|
|
} |