8 lines
330 B
Plaintext
8 lines
330 B
Plaintext
==== 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.
|
|
} |