2014-07-13 01:04:16 +02:00
|
|
|
//// [topLevelExports.ts]
|
|
|
|
export var foo = 3;
|
|
|
|
|
|
|
|
function log(n:number) { return n;}
|
|
|
|
|
|
|
|
void log(foo).toString();
|
|
|
|
|
|
|
|
//// [topLevelExports.js]
|
|
|
|
define(["require", "exports"], function (require, exports) {
|
|
|
|
exports.foo = 3;
|
2015-02-07 05:03:24 +01:00
|
|
|
function log(n) { return n; }
|
2014-07-13 01:04:16 +02:00
|
|
|
void log(exports.foo).toString();
|
|
|
|
});
|