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