TypeScript/tests/baselines/reference/staticsNotInScopeInClodule.js

21 lines
368 B
TypeScript

//// [staticsNotInScopeInClodule.ts]
class Clod {
static x = 10;
}
module Clod {
var p = x; // x isn't in scope here
}
//// [staticsNotInScopeInClodule.js]
var Clod = (function () {
function Clod() {
}
Clod.x = 10;
return Clod;
})();
var Clod;
(function (Clod) {
var p = x; // x isn't in scope here
})(Clod || (Clod = {}));