2015-03-16 02:24:12 +01:00
|
|
|
//// [tests/cases/compiler/es6ImportDefaultBindingAmd.ts] ////
|
|
|
|
|
|
|
|
//// [es6ImportDefaultBindingAmd_0.ts]
|
|
|
|
|
|
|
|
var a = 10;
|
2015-03-23 19:06:44 +01:00
|
|
|
export default a;
|
2015-03-16 02:24:12 +01:00
|
|
|
|
|
|
|
//// [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;
|
2015-03-23 19:06:44 +01:00
|
|
|
exports.default = a;
|
2015-03-16 02:24:12 +01:00
|
|
|
});
|
|
|
|
//// [es6ImportDefaultBindingAmd_1.js]
|
2015-03-23 19:06:44 +01:00
|
|
|
define(["require", "exports", "es6ImportDefaultBindingAmd_0"], function (require, exports, _es6ImportDefaultBindingAmd_0) {
|
|
|
|
var x = _es6ImportDefaultBindingAmd_0.default;
|
2015-03-16 02:24:12 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//// [es6ImportDefaultBindingAmd_0.d.ts]
|
|
|
|
declare var a: number;
|
2015-03-23 19:06:44 +01:00
|
|
|
export default a;
|
2015-03-16 02:24:12 +01:00
|
|
|
//// [es6ImportDefaultBindingAmd_1.d.ts]
|