2014-07-13 01:04:16 +02:00
|
|
|
//// [moduleProperty2.ts]
|
|
|
|
module M {
|
|
|
|
function f() {
|
|
|
|
var x;
|
|
|
|
}
|
|
|
|
var y;
|
|
|
|
export var z;
|
|
|
|
var test1=x;
|
|
|
|
var test2=y; // y visible because same module
|
|
|
|
}
|
|
|
|
|
|
|
|
module N {
|
|
|
|
var test3=M.y; // nope y private property of M
|
|
|
|
var test4=M.z; // ok public property of M
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [moduleProperty2.js]
|
|
|
|
var M;
|
|
|
|
(function (M) {
|
|
|
|
function f() {
|
|
|
|
var x;
|
|
|
|
}
|
|
|
|
var y;
|
|
|
|
M.z;
|
|
|
|
var test1 = x;
|
2014-08-15 01:36:33 +02:00
|
|
|
var test2 = y; // y visible because same module
|
2014-07-13 01:04:16 +02:00
|
|
|
})(M || (M = {}));
|
|
|
|
var N;
|
|
|
|
(function (N) {
|
2014-08-15 01:36:33 +02:00
|
|
|
var test3 = M.y; // nope y private property of M
|
|
|
|
var test4 = M.z; // ok public property of M
|
2014-07-13 01:04:16 +02:00
|
|
|
})(N || (N = {}));
|