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

30 lines
473 B
JavaScript

//// [cloduleStaticMembers.ts]
class Clod {
private static x = 10;
public static y = 10;
}
module Clod {
var p = Clod.x;
var q = x;
var s = Clod.y;
var t = y;
}
//// [cloduleStaticMembers.js]
var Clod = (function () {
function Clod() {
}
Clod.x = 10;
Clod.y = 10;
return Clod;
})();
var Clod;
(function (Clod) {
var p = Clod.x;
var q = x;
var s = Clod.y;
var t = y;
})(Clod || (Clod = {}));