TypeScript/tests/baselines/reference/MemberAccessorDeclaration15.errors.txt
2014-09-11 16:11:08 -07:00

8 lines
358 B
Plaintext

==== tests/cases/compiler/MemberAccessorDeclaration15.ts (2 errors) ====
class C {
set Foo(public a: number) { }
~~~
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
~~~~~~~~~~~~~~~~
!!! error TS2369: A parameter property is only allowed in a constructor implementation.
}