2015-03-12 06:55:09 +01:00
|
|
|
//// [tests/cases/compiler/es6ImportDefaultBindingMergeErrors.ts] ////
|
|
|
|
|
|
|
|
//// [es6ImportDefaultBindingMergeErrors_0.ts]
|
|
|
|
|
|
|
|
var a = 10;
|
2015-03-23 19:06:44 +01:00
|
|
|
export default a;
|
2015-03-12 06:55:09 +01:00
|
|
|
|
|
|
|
//// [es6ImportDefaultBindingMergeErrors_1.ts]
|
|
|
|
import defaultBinding from "es6ImportDefaultBindingMergeErrors_0";
|
|
|
|
interface defaultBinding { // This is ok
|
|
|
|
}
|
|
|
|
var x = defaultBinding;
|
|
|
|
import defaultBinding2 from "es6ImportDefaultBindingMergeErrors_0"; // Should be error
|
|
|
|
var defaultBinding2 = "hello world";
|
|
|
|
import defaultBinding3 from "es6ImportDefaultBindingMergeErrors_0"; // Should be error
|
|
|
|
import defaultBinding3 from "es6ImportDefaultBindingMergeErrors_0"; // SHould be error
|
|
|
|
|
|
|
|
|
|
|
|
//// [es6ImportDefaultBindingMergeErrors_0.js]
|
|
|
|
var a = 10;
|
2015-03-23 19:06:44 +01:00
|
|
|
exports.default = a;
|
2015-03-12 06:55:09 +01:00
|
|
|
//// [es6ImportDefaultBindingMergeErrors_1.js]
|
2015-03-23 19:06:44 +01:00
|
|
|
var _es6ImportDefaultBindingMergeErrors_0 = require("es6ImportDefaultBindingMergeErrors_0");
|
|
|
|
var x = _es6ImportDefaultBindingMergeErrors_0.default;
|
2015-03-12 06:55:09 +01:00
|
|
|
var defaultBinding2 = "hello world";
|