mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 12:51:30 -05:00
Tests for more combination of import specifier list
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
export var a = 10;
|
||||
export var x = a;
|
||||
export var m = a;
|
||||
export var a1 = 10;
|
||||
export var x1 = 10;
|
||||
|
||||
//// [es6ImportNamedImport_1.ts]
|
||||
import { } from "es6ImportNamedImport_0";
|
||||
@@ -12,10 +14,14 @@ import { a } from "es6ImportNamedImport_0";
|
||||
import { a as b } from "es6ImportNamedImport_0";
|
||||
import { x, a as y } from "es6ImportNamedImport_0";
|
||||
import { x as z, } from "es6ImportNamedImport_0";
|
||||
import { m, } from "es6ImportNamedImport_0";
|
||||
import { m, } from "es6ImportNamedImport_0";
|
||||
import { a1, x1 } from "es6ImportNamedImport_0";
|
||||
import { a1 as a11, x1 as x11 } from "es6ImportNamedImport_0";
|
||||
|
||||
//// [es6ImportNamedImport_0.js]
|
||||
exports.a = 10;
|
||||
exports.x = exports.a;
|
||||
exports.m = exports.a;
|
||||
exports.a1 = 10;
|
||||
exports.x1 = 10;
|
||||
//// [es6ImportNamedImport_1.js]
|
||||
|
||||
@@ -11,6 +11,12 @@ export var m = a;
|
||||
>m : number
|
||||
>a : number
|
||||
|
||||
export var a1 = 10;
|
||||
>a1 : number
|
||||
|
||||
export var x1 = 10;
|
||||
>x1 : number
|
||||
|
||||
=== tests/cases/compiler/es6ImportNamedImport_1.ts ===
|
||||
import { } from "es6ImportNamedImport_0";
|
||||
No type information for this code.import { a } from "es6ImportNamedImport_0";
|
||||
@@ -18,4 +24,6 @@ No type information for this code.import { a as b } from "es6ImportNamedImport_0
|
||||
No type information for this code.import { x, a as y } from "es6ImportNamedImport_0";
|
||||
No type information for this code.import { x as z, } from "es6ImportNamedImport_0";
|
||||
No type information for this code.import { m, } from "es6ImportNamedImport_0";
|
||||
No type information for this code.import { a1, x1 } from "es6ImportNamedImport_0";
|
||||
No type information for this code.import { a1 as a11, x1 as x11 } from "es6ImportNamedImport_0";
|
||||
No type information for this code.
|
||||
@@ -5,6 +5,8 @@
|
||||
export var a = 10;
|
||||
export var x = a;
|
||||
export var m = a;
|
||||
export var a1 = 10;
|
||||
export var x1 = 10;
|
||||
|
||||
//// [es6ImportNamedImportInEs5_1.ts]
|
||||
import { } from "es6ImportNamedImportInEs5_0";
|
||||
@@ -12,10 +14,14 @@ import { a } from "es6ImportNamedImportInEs5_0";
|
||||
import { a as b } from "es6ImportNamedImportInEs5_0";
|
||||
import { x, a as y } from "es6ImportNamedImportInEs5_0";
|
||||
import { x as z, } from "es6ImportNamedImportInEs5_0";
|
||||
import { m, } from "es6ImportNamedImportInEs5_0";
|
||||
import { m, } from "es6ImportNamedImportInEs5_0";
|
||||
import { a1, x1 } from "es6ImportNamedImportInEs5_0";
|
||||
import { a1 as a11, x1 as x11 } from "es6ImportNamedImportInEs5_0";
|
||||
|
||||
//// [es6ImportNamedImportInEs5_0.js]
|
||||
exports.a = 10;
|
||||
exports.x = exports.a;
|
||||
exports.m = exports.a;
|
||||
exports.a1 = 10;
|
||||
exports.x1 = 10;
|
||||
//// [es6ImportNamedImportInEs5_1.js]
|
||||
|
||||
@@ -11,6 +11,12 @@ export var m = a;
|
||||
>m : number
|
||||
>a : number
|
||||
|
||||
export var a1 = 10;
|
||||
>a1 : number
|
||||
|
||||
export var x1 = 10;
|
||||
>x1 : number
|
||||
|
||||
=== tests/cases/compiler/es6ImportNamedImportInEs5_1.ts ===
|
||||
import { } from "es6ImportNamedImportInEs5_0";
|
||||
No type information for this code.import { a } from "es6ImportNamedImportInEs5_0";
|
||||
@@ -18,4 +24,6 @@ No type information for this code.import { a as b } from "es6ImportNamedImportIn
|
||||
No type information for this code.import { x, a as y } from "es6ImportNamedImportInEs5_0";
|
||||
No type information for this code.import { x as z, } from "es6ImportNamedImportInEs5_0";
|
||||
No type information for this code.import { m, } from "es6ImportNamedImportInEs5_0";
|
||||
No type information for this code.import { a1, x1 } from "es6ImportNamedImportInEs5_0";
|
||||
No type information for this code.import { a1 as a11, x1 as x11 } from "es6ImportNamedImportInEs5_0";
|
||||
No type information for this code.
|
||||
@@ -5,6 +5,8 @@
|
||||
export var a = 10;
|
||||
export var x = a;
|
||||
export var m = a;
|
||||
export var a1 = 10;
|
||||
export var x1 = 10;
|
||||
|
||||
// @filename: es6ImportNamedImport_1.ts
|
||||
import { } from "es6ImportNamedImport_0";
|
||||
@@ -12,4 +14,6 @@ import { a } from "es6ImportNamedImport_0";
|
||||
import { a as b } from "es6ImportNamedImport_0";
|
||||
import { x, a as y } from "es6ImportNamedImport_0";
|
||||
import { x as z, } from "es6ImportNamedImport_0";
|
||||
import { m, } from "es6ImportNamedImport_0";
|
||||
import { m, } from "es6ImportNamedImport_0";
|
||||
import { a1, x1 } from "es6ImportNamedImport_0";
|
||||
import { a1 as a11, x1 as x11 } from "es6ImportNamedImport_0";
|
||||
@@ -5,6 +5,8 @@
|
||||
export var a = 10;
|
||||
export var x = a;
|
||||
export var m = a;
|
||||
export var a1 = 10;
|
||||
export var x1 = 10;
|
||||
|
||||
// @filename: es6ImportNamedImportInEs5_1.ts
|
||||
import { } from "es6ImportNamedImportInEs5_0";
|
||||
@@ -12,4 +14,6 @@ import { a } from "es6ImportNamedImportInEs5_0";
|
||||
import { a as b } from "es6ImportNamedImportInEs5_0";
|
||||
import { x, a as y } from "es6ImportNamedImportInEs5_0";
|
||||
import { x as z, } from "es6ImportNamedImportInEs5_0";
|
||||
import { m, } from "es6ImportNamedImportInEs5_0";
|
||||
import { m, } from "es6ImportNamedImportInEs5_0";
|
||||
import { a1, x1 } from "es6ImportNamedImportInEs5_0";
|
||||
import { a1 as a11, x1 as x11 } from "es6ImportNamedImportInEs5_0";
|
||||
Reference in New Issue
Block a user