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

19 lines
605 B
Plaintext

==== tests/cases/compiler/es6ClassTest3.ts (2 errors) ====
module M {
class Visibility {
public foo() { };
~
!!! error TS1068: Unexpected token. A constructor, method, accessor, or property was expected.
private bar() { };
~
!!! error TS1068: Unexpected token. A constructor, method, accessor, or property was expected.
private x: number;
public y: number;
public z: number;
constructor() {
this.x = 1;
this.y = 2;
}
}
}