mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
34 lines
574 B
TypeScript
34 lines
574 B
TypeScript
//// [tests/cases/compiler/es6ClassTest3.ts] ////
|
|
|
|
//// [es6ClassTest3.ts]
|
|
namespace M {
|
|
class Visibility {
|
|
public foo() { };
|
|
private bar() { };
|
|
private x: number;
|
|
public y: number;
|
|
public z: number;
|
|
|
|
constructor() {
|
|
this.x = 1;
|
|
this.y = 2;
|
|
}
|
|
}
|
|
}
|
|
|
|
//// [es6ClassTest3.js]
|
|
"use strict";
|
|
var M;
|
|
(function (M) {
|
|
class Visibility {
|
|
foo() { }
|
|
;
|
|
bar() { }
|
|
;
|
|
constructor() {
|
|
this.x = 1;
|
|
this.y = 2;
|
|
}
|
|
}
|
|
})(M || (M = {}));
|