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
32 lines
669 B
TypeScript
32 lines
669 B
TypeScript
//// [tests/cases/compiler/es6ImportDefaultBindingDts.ts] ////
|
|
|
|
//// [server.ts]
|
|
|
|
class c { }
|
|
export default c;
|
|
|
|
//// [client.ts]
|
|
import defaultBinding from "server";
|
|
export var x = new defaultBinding();
|
|
import defaultBinding2 from "server"; // elide this import since defaultBinding2 is not used
|
|
|
|
|
|
//// [server.js]
|
|
var c = (function () {
|
|
function c() {
|
|
}
|
|
return c;
|
|
})();
|
|
exports.default = c;
|
|
//// [client.js]
|
|
var _server = require("server");
|
|
exports.x = new _server.default();
|
|
|
|
|
|
//// [server.d.ts]
|
|
declare class c {
|
|
}
|
|
export default c;
|
|
//// [client.d.ts]
|
|
import defaultBinding from "server";
|
|
export declare var x: defaultBinding;
|