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
25 lines
679 B
TypeScript
25 lines
679 B
TypeScript
//// [tests/cases/compiler/es6ImportDefaultBinding.ts] ////
|
|
|
|
//// [es6ImportDefaultBinding_0.ts]
|
|
|
|
var a = 10;
|
|
export default a;
|
|
|
|
//// [es6ImportDefaultBinding_1.ts]
|
|
import defaultBinding from "es6ImportDefaultBinding_0";
|
|
var x = defaultBinding;
|
|
import defaultBinding2 from "es6ImportDefaultBinding_0"; // elide this import since defaultBinding2 is not used
|
|
|
|
|
|
//// [es6ImportDefaultBinding_0.js]
|
|
var a = 10;
|
|
export default a;
|
|
//// [es6ImportDefaultBinding_1.js]
|
|
import defaultBinding from "es6ImportDefaultBinding_0";
|
|
var x = defaultBinding;
|
|
|
|
|
|
//// [es6ImportDefaultBinding_0.d.ts]
|
|
declare var a: number;
|
|
export default a;
|
|
//// [es6ImportDefaultBinding_1.d.ts]
|