TypeScript/tests/baselines/reference/systemModule14.js

33 lines
617 B
TypeScript

//// [systemModule14.ts]
function foo() {
return a;
}
import {a} from "foo";
export {foo}
var x = 1;
export {foo as b}
//// [systemModule14.js]
System.register(["foo"], function (exports_1, context_1) {
"use strict";
var __moduleName = context_1 && context_1.id;
function foo() {
return foo_1.a;
}
exports_1("foo", foo);
exports_1("b", foo);
var foo_1, x;
return {
setters: [
function (foo_1_1) {
foo_1 = foo_1_1;
}
],
execute: function () {
x = 1;
}
};
});