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
28 lines
669 B
TypeScript
28 lines
669 B
TypeScript
//// [tests/cases/compiler/es6ImportDefaultBindingWithExport.ts] ////
|
|
|
|
//// [server.ts]
|
|
|
|
var a = 10;
|
|
export default a;
|
|
|
|
//// [client.ts]
|
|
export import defaultBinding from "server";
|
|
export var x = defaultBinding;
|
|
export import defaultBinding2 from "server"; // non referenced
|
|
|
|
//// [server.js]
|
|
define(["require", "exports"], function (require, exports) {
|
|
var a = 10;
|
|
exports.default = a;
|
|
});
|
|
//// [client.js]
|
|
define(["require", "exports", "server"], function (require, exports, server_1) {
|
|
exports.x = server_1.default;
|
|
});
|
|
|
|
|
|
//// [server.d.ts]
|
|
declare var a: number;
|
|
export default a;
|
|
//// [client.d.ts]
|
|
export declare var x: number;
|