Conflicts: src/compiler/checker.ts src/compiler/emitter.ts src/compiler/types.ts tests/baselines/reference/APISample_compile.js tests/baselines/reference/APISample_linter.js tests/baselines/reference/APISample_transform.js tests/baselines/reference/APISample_watcher.js tests/baselines/reference/es5ExportDefaultClassDeclaration2.js tests/baselines/reference/es5ExportDefaultFunctionDeclaration2.js tests/baselines/reference/es6ExportAllInEs5.js tests/baselines/reference/es6ExportClauseWithoutModuleSpecifierInEs5.js
30 lines
678 B
TypeScript
30 lines
678 B
TypeScript
//// [tests/cases/conformance/es6/modules/exportsAndImports2-amd.ts] ////
|
|
|
|
//// [t1.ts]
|
|
|
|
export var x = "x";
|
|
export var y = "y";
|
|
|
|
//// [t2.ts]
|
|
export { x as y, y as x } from "./t1";
|
|
|
|
//// [t3.ts]
|
|
import { x, y } from "./t1";
|
|
export { x as y, y as x };
|
|
|
|
|
|
//// [t1.js]
|
|
define(["require", "exports"], function (require, exports) {
|
|
exports.x = "x";
|
|
exports.y = "y";
|
|
});
|
|
//// [t2.js]
|
|
define(["require", "exports", "./t1"], function (require, exports, t1_1) {
|
|
exports.y = t1_1.x;
|
|
exports.x = t1_1.y;
|
|
});
|
|
//// [t3.js]
|
|
define(["require", "exports", "./t1"], function (require, exports, t1_1) {
|
|
exports.y = t1_1.x;
|
|
exports.x = t1_1.y;
|
|
});
|