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
26 lines
479 B
TypeScript
26 lines
479 B
TypeScript
//// [tests/cases/conformance/es6/modules/exportsAndImports2.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]
|
|
exports.x = "x";
|
|
exports.y = "y";
|
|
//// [t2.js]
|
|
var t1_1 = require("./t1");
|
|
exports.y = t1_1.x;
|
|
exports.x = t1_1.y;
|
|
//// [t3.js]
|
|
var t1_1 = require("./t1");
|
|
exports.y = t1_1.x;
|
|
exports.x = t1_1.y;
|