|
|
|
|
@@ -11,25 +11,25 @@ tests/cases/compiler/main.ts(33,8): error TS1192: External module '"function"' h
|
|
|
|
|
tests/cases/compiler/main.ts(34,8): error TS1192: External module '"function-module"' has no default export.
|
|
|
|
|
tests/cases/compiler/main.ts(35,8): error TS1192: External module '"class"' has no default export.
|
|
|
|
|
tests/cases/compiler/main.ts(36,8): error TS1192: External module '"class-module"' has no default export.
|
|
|
|
|
tests/cases/compiler/main.ts(39,21): error TS2496: External module '"interface"' resolves to a non-module entity and cannot be imported using this construct.
|
|
|
|
|
tests/cases/compiler/main.ts(45,21): error TS2496: External module '"function"' resolves to a non-module entity and cannot be imported using this construct.
|
|
|
|
|
tests/cases/compiler/main.ts(47,21): error TS2496: External module '"class"' resolves to a non-module entity and cannot be imported using this construct.
|
|
|
|
|
tests/cases/compiler/main.ts(62,25): error TS2496: External module '"interface"' resolves to a non-module entity and cannot be imported using this construct.
|
|
|
|
|
tests/cases/compiler/main.ts(68,25): error TS2496: External module '"function"' resolves to a non-module entity and cannot be imported using this construct.
|
|
|
|
|
tests/cases/compiler/main.ts(70,25): error TS2496: External module '"class"' resolves to a non-module entity and cannot be imported using this construct.
|
|
|
|
|
tests/cases/compiler/main.ts(85,25): error TS2496: External module '"interface"' resolves to a non-module entity and cannot be imported using this construct.
|
|
|
|
|
tests/cases/compiler/main.ts(91,25): error TS2496: External module '"function"' resolves to a non-module entity and cannot be imported using this construct.
|
|
|
|
|
tests/cases/compiler/main.ts(93,25): error TS2496: External module '"class"' resolves to a non-module entity and cannot be imported using this construct.
|
|
|
|
|
tests/cases/compiler/main.ts(97,15): error TS2497: External module '"interface"' uses 'export =' and cannot be used with 'export *'.
|
|
|
|
|
tests/cases/compiler/main.ts(98,15): error TS2497: External module '"variable"' uses 'export =' and cannot be used with 'export *'.
|
|
|
|
|
tests/cases/compiler/main.ts(99,15): error TS2497: External module '"interface-variable"' uses 'export =' and cannot be used with 'export *'.
|
|
|
|
|
tests/cases/compiler/main.ts(100,15): error TS2497: External module '"module"' uses 'export =' and cannot be used with 'export *'.
|
|
|
|
|
tests/cases/compiler/main.ts(101,15): error TS2497: External module '"interface-module"' uses 'export =' and cannot be used with 'export *'.
|
|
|
|
|
tests/cases/compiler/main.ts(102,15): error TS2497: External module '"variable-module"' uses 'export =' and cannot be used with 'export *'.
|
|
|
|
|
tests/cases/compiler/main.ts(103,15): error TS2497: External module '"function"' uses 'export =' and cannot be used with 'export *'.
|
|
|
|
|
tests/cases/compiler/main.ts(104,15): error TS2497: External module '"function-module"' uses 'export =' and cannot be used with 'export *'.
|
|
|
|
|
tests/cases/compiler/main.ts(105,15): error TS2497: External module '"class"' uses 'export =' and cannot be used with 'export *'.
|
|
|
|
|
tests/cases/compiler/main.ts(106,15): error TS2497: External module '"class-module"' uses 'export =' and cannot be used with 'export *'.
|
|
|
|
|
tests/cases/compiler/main.ts(39,21): error TS2497: External module '"interface"' resolves to a non-module entity and cannot be imported using this construct.
|
|
|
|
|
tests/cases/compiler/main.ts(45,21): error TS2497: External module '"function"' resolves to a non-module entity and cannot be imported using this construct.
|
|
|
|
|
tests/cases/compiler/main.ts(47,21): error TS2497: External module '"class"' resolves to a non-module entity and cannot be imported using this construct.
|
|
|
|
|
tests/cases/compiler/main.ts(62,25): error TS2497: External module '"interface"' resolves to a non-module entity and cannot be imported using this construct.
|
|
|
|
|
tests/cases/compiler/main.ts(68,25): error TS2497: External module '"function"' resolves to a non-module entity and cannot be imported using this construct.
|
|
|
|
|
tests/cases/compiler/main.ts(70,25): error TS2497: External module '"class"' resolves to a non-module entity and cannot be imported using this construct.
|
|
|
|
|
tests/cases/compiler/main.ts(85,25): error TS2497: External module '"interface"' resolves to a non-module entity and cannot be imported using this construct.
|
|
|
|
|
tests/cases/compiler/main.ts(91,25): error TS2497: External module '"function"' resolves to a non-module entity and cannot be imported using this construct.
|
|
|
|
|
tests/cases/compiler/main.ts(93,25): error TS2497: External module '"class"' resolves to a non-module entity and cannot be imported using this construct.
|
|
|
|
|
tests/cases/compiler/main.ts(97,15): error TS2498: External module '"interface"' uses 'export =' and cannot be used with 'export *'.
|
|
|
|
|
tests/cases/compiler/main.ts(98,15): error TS2498: External module '"variable"' uses 'export =' and cannot be used with 'export *'.
|
|
|
|
|
tests/cases/compiler/main.ts(99,15): error TS2498: External module '"interface-variable"' uses 'export =' and cannot be used with 'export *'.
|
|
|
|
|
tests/cases/compiler/main.ts(100,15): error TS2498: External module '"module"' uses 'export =' and cannot be used with 'export *'.
|
|
|
|
|
tests/cases/compiler/main.ts(101,15): error TS2498: External module '"interface-module"' uses 'export =' and cannot be used with 'export *'.
|
|
|
|
|
tests/cases/compiler/main.ts(102,15): error TS2498: External module '"variable-module"' uses 'export =' and cannot be used with 'export *'.
|
|
|
|
|
tests/cases/compiler/main.ts(103,15): error TS2498: External module '"function"' uses 'export =' and cannot be used with 'export *'.
|
|
|
|
|
tests/cases/compiler/main.ts(104,15): error TS2498: External module '"function-module"' uses 'export =' and cannot be used with 'export *'.
|
|
|
|
|
tests/cases/compiler/main.ts(105,15): error TS2498: External module '"class"' uses 'export =' and cannot be used with 'export *'.
|
|
|
|
|
tests/cases/compiler/main.ts(106,15): error TS2498: External module '"class-module"' uses 'export =' and cannot be used with 'export *'.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
==== tests/cases/compiler/main.ts (32 errors) ====
|
|
|
|
|
@@ -99,7 +99,7 @@ tests/cases/compiler/main.ts(106,15): error TS2497: External module '"class-modu
|
|
|
|
|
// namespace import
|
|
|
|
|
import * as y1 from "interface";
|
|
|
|
|
~~~~~~~~~~~
|
|
|
|
|
!!! error TS2496: External module '"interface"' resolves to a non-module entity and cannot be imported using this construct.
|
|
|
|
|
!!! error TS2497: External module '"interface"' resolves to a non-module entity and cannot be imported using this construct.
|
|
|
|
|
import * as y2 from "variable";
|
|
|
|
|
import * as y3 from "interface-variable";
|
|
|
|
|
import * as y4 from "module";
|
|
|
|
|
@@ -107,11 +107,11 @@ tests/cases/compiler/main.ts(106,15): error TS2497: External module '"class-modu
|
|
|
|
|
import * as y6 from "variable-module";
|
|
|
|
|
import * as y7 from "function";
|
|
|
|
|
~~~~~~~~~~
|
|
|
|
|
!!! error TS2496: External module '"function"' resolves to a non-module entity and cannot be imported using this construct.
|
|
|
|
|
!!! error TS2497: External module '"function"' resolves to a non-module entity and cannot be imported using this construct.
|
|
|
|
|
import * as y8 from "function-module";
|
|
|
|
|
import * as y9 from "class";
|
|
|
|
|
~~~~~~~
|
|
|
|
|
!!! error TS2496: External module '"class"' resolves to a non-module entity and cannot be imported using this construct.
|
|
|
|
|
!!! error TS2497: External module '"class"' resolves to a non-module entity and cannot be imported using this construct.
|
|
|
|
|
import * as y0 from "class-module";
|
|
|
|
|
|
|
|
|
|
y1.a;
|
|
|
|
|
@@ -128,7 +128,7 @@ tests/cases/compiler/main.ts(106,15): error TS2497: External module '"class-modu
|
|
|
|
|
// named import
|
|
|
|
|
import { a as a1 } from "interface";
|
|
|
|
|
~~~~~~~~~~~
|
|
|
|
|
!!! error TS2496: External module '"interface"' resolves to a non-module entity and cannot be imported using this construct.
|
|
|
|
|
!!! error TS2497: External module '"interface"' resolves to a non-module entity and cannot be imported using this construct.
|
|
|
|
|
import { a as a2 } from "variable";
|
|
|
|
|
import { a as a3 } from "interface-variable";
|
|
|
|
|
import { a as a4 } from "module";
|
|
|
|
|
@@ -136,11 +136,11 @@ tests/cases/compiler/main.ts(106,15): error TS2497: External module '"class-modu
|
|
|
|
|
import { a as a6 } from "variable-module";
|
|
|
|
|
import { a as a7 } from "function";
|
|
|
|
|
~~~~~~~~~~
|
|
|
|
|
!!! error TS2496: External module '"function"' resolves to a non-module entity and cannot be imported using this construct.
|
|
|
|
|
!!! error TS2497: External module '"function"' resolves to a non-module entity and cannot be imported using this construct.
|
|
|
|
|
import { a as a8 } from "function-module";
|
|
|
|
|
import { a as a9 } from "class";
|
|
|
|
|
~~~~~~~
|
|
|
|
|
!!! error TS2496: External module '"class"' resolves to a non-module entity and cannot be imported using this construct.
|
|
|
|
|
!!! error TS2497: External module '"class"' resolves to a non-module entity and cannot be imported using this construct.
|
|
|
|
|
import { a as a0 } from "class-module";
|
|
|
|
|
|
|
|
|
|
a1;
|
|
|
|
|
@@ -157,7 +157,7 @@ tests/cases/compiler/main.ts(106,15): error TS2497: External module '"class-modu
|
|
|
|
|
// named export
|
|
|
|
|
export { a as a1 } from "interface";
|
|
|
|
|
~~~~~~~~~~~
|
|
|
|
|
!!! error TS2496: External module '"interface"' resolves to a non-module entity and cannot be imported using this construct.
|
|
|
|
|
!!! error TS2497: External module '"interface"' resolves to a non-module entity and cannot be imported using this construct.
|
|
|
|
|
export { a as a2 } from "variable";
|
|
|
|
|
export { a as a3 } from "interface-variable";
|
|
|
|
|
export { a as a4 } from "module";
|
|
|
|
|
@@ -165,44 +165,44 @@ tests/cases/compiler/main.ts(106,15): error TS2497: External module '"class-modu
|
|
|
|
|
export { a as a6 } from "variable-module";
|
|
|
|
|
export { a as a7 } from "function";
|
|
|
|
|
~~~~~~~~~~
|
|
|
|
|
!!! error TS2496: External module '"function"' resolves to a non-module entity and cannot be imported using this construct.
|
|
|
|
|
!!! error TS2497: External module '"function"' resolves to a non-module entity and cannot be imported using this construct.
|
|
|
|
|
export { a as a8 } from "function-module";
|
|
|
|
|
export { a as a9 } from "class";
|
|
|
|
|
~~~~~~~
|
|
|
|
|
!!! error TS2496: External module '"class"' resolves to a non-module entity and cannot be imported using this construct.
|
|
|
|
|
!!! error TS2497: External module '"class"' resolves to a non-module entity and cannot be imported using this construct.
|
|
|
|
|
export { a as a0 } from "class-module";
|
|
|
|
|
|
|
|
|
|
// export-star
|
|
|
|
|
export * from "interface";
|
|
|
|
|
~~~~~~~~~~~
|
|
|
|
|
!!! error TS2497: External module '"interface"' uses 'export =' and cannot be used with 'export *'.
|
|
|
|
|
!!! error TS2498: External module '"interface"' uses 'export =' and cannot be used with 'export *'.
|
|
|
|
|
export * from "variable";
|
|
|
|
|
~~~~~~~~~~
|
|
|
|
|
!!! error TS2497: External module '"variable"' uses 'export =' and cannot be used with 'export *'.
|
|
|
|
|
!!! error TS2498: External module '"variable"' uses 'export =' and cannot be used with 'export *'.
|
|
|
|
|
export * from "interface-variable";
|
|
|
|
|
~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
!!! error TS2497: External module '"interface-variable"' uses 'export =' and cannot be used with 'export *'.
|
|
|
|
|
!!! error TS2498: External module '"interface-variable"' uses 'export =' and cannot be used with 'export *'.
|
|
|
|
|
export * from "module";
|
|
|
|
|
~~~~~~~~
|
|
|
|
|
!!! error TS2497: External module '"module"' uses 'export =' and cannot be used with 'export *'.
|
|
|
|
|
!!! error TS2498: External module '"module"' uses 'export =' and cannot be used with 'export *'.
|
|
|
|
|
export * from "interface-module";
|
|
|
|
|
~~~~~~~~~~~~~~~~~~
|
|
|
|
|
!!! error TS2497: External module '"interface-module"' uses 'export =' and cannot be used with 'export *'.
|
|
|
|
|
!!! error TS2498: External module '"interface-module"' uses 'export =' and cannot be used with 'export *'.
|
|
|
|
|
export * from "variable-module";
|
|
|
|
|
~~~~~~~~~~~~~~~~~
|
|
|
|
|
!!! error TS2497: External module '"variable-module"' uses 'export =' and cannot be used with 'export *'.
|
|
|
|
|
!!! error TS2498: External module '"variable-module"' uses 'export =' and cannot be used with 'export *'.
|
|
|
|
|
export * from "function";
|
|
|
|
|
~~~~~~~~~~
|
|
|
|
|
!!! error TS2497: External module '"function"' uses 'export =' and cannot be used with 'export *'.
|
|
|
|
|
!!! error TS2498: External module '"function"' uses 'export =' and cannot be used with 'export *'.
|
|
|
|
|
export * from "function-module";
|
|
|
|
|
~~~~~~~~~~~~~~~~~
|
|
|
|
|
!!! error TS2497: External module '"function-module"' uses 'export =' and cannot be used with 'export *'.
|
|
|
|
|
!!! error TS2498: External module '"function-module"' uses 'export =' and cannot be used with 'export *'.
|
|
|
|
|
export * from "class";
|
|
|
|
|
~~~~~~~
|
|
|
|
|
!!! error TS2497: External module '"class"' uses 'export =' and cannot be used with 'export *'.
|
|
|
|
|
!!! error TS2498: External module '"class"' uses 'export =' and cannot be used with 'export *'.
|
|
|
|
|
export * from "class-module";
|
|
|
|
|
~~~~~~~~~~~~~~
|
|
|
|
|
!!! error TS2497: External module '"class-module"' uses 'export =' and cannot be used with 'export *'.
|
|
|
|
|
!!! error TS2498: External module '"class-module"' uses 'export =' and cannot be used with 'export *'.
|
|
|
|
|
|
|
|
|
|
==== tests/cases/compiler/modules.d.ts (0 errors) ====
|
|
|
|
|
|
|
|
|
|
|