19 lines
577 B
Plaintext
19 lines
577 B
Plaintext
==== tests/cases/compiler/es6ClassTest3.ts (2 errors) ====
|
|
module M {
|
|
class Visibility {
|
|
public foo() { };
|
|
~
|
|
!!! Unexpected token. A constructor, method, accessor, or property was expected.
|
|
private bar() { };
|
|
~
|
|
!!! 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;
|
|
}
|
|
}
|
|
} |