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
50 lines
1.5 KiB
TypeScript
50 lines
1.5 KiB
TypeScript
//// [tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1WithExport.ts] ////
|
|
|
|
//// [server.ts]
|
|
|
|
var a = 10;
|
|
export default a;
|
|
|
|
//// [client.ts]
|
|
export import defaultBinding1, { } from "server";
|
|
export var x1: number = defaultBinding1;
|
|
export import defaultBinding2, { a } from "server";
|
|
export var x1: number = defaultBinding2;
|
|
export import defaultBinding3, { a as b } from "server";
|
|
export var x1: number = defaultBinding3;
|
|
export import defaultBinding4, { x, a as y } from "server";
|
|
export var x1: number = defaultBinding4;
|
|
export import defaultBinding5, { x as z, } from "server";
|
|
export var x1: number = defaultBinding5;
|
|
export import defaultBinding6, { m, } from "server";
|
|
export var x1: number = defaultBinding6;
|
|
|
|
|
|
//// [server.js]
|
|
var a = 10;
|
|
exports.default = a;
|
|
//// [client.js]
|
|
var server_1 = require("server");
|
|
exports.x1 = server_1.default;
|
|
var server_2 = require("server");
|
|
exports.x1 = server_2.default;
|
|
var server_3 = require("server");
|
|
exports.x1 = server_3.default;
|
|
var server_4 = require("server");
|
|
exports.x1 = server_4.default;
|
|
var server_5 = require("server");
|
|
exports.x1 = server_5.default;
|
|
var server_6 = require("server");
|
|
exports.x1 = server_6.default;
|
|
|
|
|
|
//// [server.d.ts]
|
|
declare var a: number;
|
|
export default a;
|
|
//// [client.d.ts]
|
|
export declare var x1: number;
|
|
export declare var x1: number;
|
|
export declare var x1: number;
|
|
export declare var x1: number;
|
|
export declare var x1: number;
|
|
export declare var x1: number;
|