29 lines
328 B
TypeScript
29 lines
328 B
TypeScript
//// [anonymousModules.ts]
|
|
module {
|
|
export var foo = 1;
|
|
|
|
module {
|
|
export var bar = 1;
|
|
}
|
|
|
|
var bar = 2;
|
|
|
|
module {
|
|
var x = bar;
|
|
}
|
|
}
|
|
|
|
//// [anonymousModules.js]
|
|
module;
|
|
{
|
|
exports.foo = 1;
|
|
module;
|
|
{
|
|
exports.bar = 1;
|
|
}
|
|
var bar = 2;
|
|
module;
|
|
{
|
|
var x = bar;
|
|
}
|
|
}
|