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
886 B
TypeScript
28 lines
886 B
TypeScript
//// [tests/cases/compiler/es6ImportDefaultBindingAmd.ts] ////
|
|
|
|
//// [es6ImportDefaultBindingAmd_0.ts]
|
|
|
|
var a = 10;
|
|
export default a;
|
|
|
|
//// [es6ImportDefaultBindingAmd_1.ts]
|
|
import defaultBinding from "es6ImportDefaultBindingAmd_0";
|
|
var x = defaultBinding;
|
|
import defaultBinding2 from "es6ImportDefaultBindingAmd_0"; // elide this import since defaultBinding2 is not used
|
|
|
|
|
|
//// [es6ImportDefaultBindingAmd_0.js]
|
|
define(["require", "exports"], function (require, exports) {
|
|
var a = 10;
|
|
exports.default = a;
|
|
});
|
|
//// [es6ImportDefaultBindingAmd_1.js]
|
|
define(["require", "exports", "es6ImportDefaultBindingAmd_0"], function (require, exports, es6ImportDefaultBindingAmd_0_1) {
|
|
var x = es6ImportDefaultBindingAmd_0_1.default;
|
|
});
|
|
|
|
|
|
//// [es6ImportDefaultBindingAmd_0.d.ts]
|
|
declare var a: number;
|
|
export default a;
|
|
//// [es6ImportDefaultBindingAmd_1.d.ts]
|