TypeScript/tests/baselines/reference/declFilePrivateStatic.errors.txt
2014-09-12 13:35:07 -07:00

29 lines
1.4 KiB
Plaintext

tests/cases/compiler/declFilePrivateStatic.ts(9,24): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
tests/cases/compiler/declFilePrivateStatic.ts(10,16): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
tests/cases/compiler/declFilePrivateStatic.ts(12,24): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
tests/cases/compiler/declFilePrivateStatic.ts(13,16): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
==== tests/cases/compiler/declFilePrivateStatic.ts (4 errors) ====
class C {
private static x = 1;
static y = 1;
private static a() { }
static b() { }
private static get c() { return 1; }
~
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
static get d() { return 1; }
~
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
private static set e(v) { }
~
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
static set f(v) { }
~
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
}