TypeScript/tests/baselines/reference/privateVisibles.js
2014-07-12 17:30:19 -07:00

23 lines
380 B
JavaScript

//// [privateVisibles.ts]
class Foo {
private pvar = 0;
constructor() {
var n = this.pvar;
}
public meth() { var q = this.pvar;}
}
//// [privateVisibles.js]
var Foo = (function () {
function Foo() {
this.pvar = 0;
var n = this.pvar;
}
Foo.prototype.meth = function () {
var q = this.pvar;
};
return Foo;
})();