TypeScript/tests/baselines/reference/es6ClassTest3.js
2015-03-31 14:29:45 -07:00

32 lines
624 B
TypeScript

//// [es6ClassTest3.ts]
module 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]
var M;
(function (M) {
var Visibility = (function () {
function Visibility() {
this.x = 1;
this.y = 2;
}
Visibility.prototype.foo = function () { };
;
Visibility.prototype.bar = function () { };
;
return Visibility;
})();
})(M || (M = {}));