2014-07-13 01:04:16 +02:00
|
|
|
//// [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) {
|
2014-08-15 01:36:33 +02:00
|
|
|
var p = x; // x isn't in scope here
|
2014-07-13 01:04:16 +02:00
|
|
|
})(Clod || (Clod = {}));
|