21 lines
368 B
JavaScript
21 lines
368 B
JavaScript
//// [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 = {}));
|