12 lines
No EOL
815 B
Text
12 lines
No EOL
815 B
Text
tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration15.ts(2,8): error TS2369: A parameter property is only allowed in a constructor implementation.
|
|
tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration15.ts(2,12): error TS2369: A parameter property is only allowed in a constructor implementation.
|
|
|
|
|
|
==== 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.
|
|
} |