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

18 lines
322 B
JavaScript

//// [nestedModulePrivateAccess.ts]
module a{
var x:number;
module b{
var y = x; // should not be an error
}
}
//// [nestedModulePrivateAccess.js]
var a;
(function (a) {
var x;
var b;
(function (b) {
var y = x;
})(b || (b = {}));
})(a || (a = {}));