TypeScript/tests/baselines/reference/classPropertyIsPublicByDefault.errors.txt

31 lines
849 B
Plaintext
Raw Normal View History

2014-07-13 01:04:16 +02:00
==== tests/cases/conformance/classes/members/accessibility/classPropertyIsPublicByDefault.ts (4 errors) ====
class C {
x: string;
get y() { return null; }
~
!!! Accessors are only available when targeting ECMAScript 5 and higher.
set y(x) { }
~
!!! Accessors are only available when targeting ECMAScript 5 and higher.
foo() { }
static a: string;
static get b() { return null; }
~
!!! Accessors are only available when targeting ECMAScript 5 and higher.
static set b(x) { }
~
!!! Accessors are only available when targeting ECMAScript 5 and higher.
static foo() { }
}
var c: C;
c.x;
c.y;
c.y = 1;
c.foo();
C.a;
C.b();
C.b = 1;
C.foo();