23 lines
No EOL
883 B
Text
23 lines
No EOL
883 B
Text
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.
|
|
|
|
|
|
==== 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;
|
|
}
|
|
}
|
|
} |