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
25 lines
961 B
TypeScript
25 lines
961 B
TypeScript
//// [tests/cases/compiler/es6ImportDefaultBindingMergeErrors.ts] ////
|
|
|
|
//// [es6ImportDefaultBindingMergeErrors_0.ts]
|
|
|
|
var a = 10;
|
|
export default a;
|
|
|
|
//// [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;
|
|
exports.default = a;
|
|
//// [es6ImportDefaultBindingMergeErrors_1.js]
|
|
var es6ImportDefaultBindingMergeErrors_0_1 = require("es6ImportDefaultBindingMergeErrors_0");
|
|
var x = es6ImportDefaultBindingMergeErrors_0_1.default;
|
|
var defaultBinding2 = "hello world";
|