8 lines
No EOL
330 B
Text
8 lines
No EOL
330 B
Text
==== tests/cases/compiler/MemberAccessorDeclaration15.ts (2 errors) ====
|
|
class C {
|
|
set Foo(public a: number) { }
|
|
~~~
|
|
!!! Accessors are only available when targeting ECMAScript 5 and higher.
|
|
~~~~~~~~~~~~~~~~
|
|
!!! A parameter property is only allowed in a constructor implementation.
|
|
} |