2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/es6ClassTest3.ts(3,22): error TS1068: Unexpected token. A constructor, method, accessor, or property was expected.
|
|
|
|
tests/cases/compiler/es6ClassTest3.ts(4,23): error TS1068: Unexpected token. A constructor, method, accessor, or property was expected.
|
|
|
|
|
|
|
|
|
2014-07-15 23:24:44 +02:00
|
|
|
==== tests/cases/compiler/es6ClassTest3.ts (2 errors) ====
|
2014-07-13 01:04:16 +02:00
|
|
|
module M {
|
|
|
|
class Visibility {
|
|
|
|
public foo() { };
|
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1068: Unexpected token. A constructor, method, accessor, or property was expected.
|
2014-07-13 01:04:16 +02:00
|
|
|
private bar() { };
|
2014-07-15 23:24:44 +02:00
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1068: Unexpected token. A constructor, method, accessor, or property was expected.
|
2014-07-13 01:04:16 +02:00
|
|
|
private x: number;
|
|
|
|
public y: number;
|
|
|
|
public z: number;
|
|
|
|
|
|
|
|
constructor() {
|
|
|
|
this.x = 1;
|
|
|
|
this.y = 2;
|
|
|
|
}
|
|
|
|
}
|
2014-07-15 23:24:44 +02:00
|
|
|
}
|