Conflicts: src/compiler/checker.ts src/compiler/diagnosticInformationMap.generated.ts src/compiler/emitter.ts tests/baselines/reference/es6ImportDefaultBinding.errors.txt tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport.errors.txt tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportInEs5.errors.txt tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding.errors.txt tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5.errors.txt tests/baselines/reference/es6ImportDefaultBindingInEs5.errors.txt
28 lines
667 B
TypeScript
28 lines
667 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) {
|
|
exports.x = _server.default;
|
|
});
|
|
|
|
|
|
//// [server.d.ts]
|
|
declare var a: number;
|
|
export default a;
|
|
//// [client.d.ts]
|
|
export declare var x: number;
|