|
|
|
|
@@ -11,24 +11,24 @@ tests/cases/compiler/main.ts(33,8): error TS1192: Module '"function"' has no def
|
|
|
|
|
tests/cases/compiler/main.ts(34,8): error TS1192: Module '"function-module"' has no default export.
|
|
|
|
|
tests/cases/compiler/main.ts(35,8): error TS1192: Module '"class"' has no default export.
|
|
|
|
|
tests/cases/compiler/main.ts(36,8): error TS1192: Module '"class-module"' has no default export.
|
|
|
|
|
tests/cases/compiler/main.ts(39,21): error TS2497: ECMAScript imports can only reference an 'export =' declaration with the 'esModuleInterop' flag enabled and by using default imports.
|
|
|
|
|
tests/cases/compiler/main.ts(45,21): error TS2497: ECMAScript imports can only reference an 'export =' declaration with the 'esModuleInterop' flag enabled and by using default imports.
|
|
|
|
|
tests/cases/compiler/main.ts(47,21): error TS2497: ECMAScript imports can only reference an 'export =' declaration with the 'esModuleInterop' flag enabled and by using default imports.
|
|
|
|
|
tests/cases/compiler/main.ts(39,21): error TS2497: When writing ECMAScript imports, callable 'export ='-style modules can only be imported by turning on the 'esModuleInterop' flag and using a default import.
|
|
|
|
|
tests/cases/compiler/main.ts(45,21): error TS2497: When writing ECMAScript imports, callable 'export ='-style modules can only be imported by turning on the 'esModuleInterop' flag and using a default import.
|
|
|
|
|
tests/cases/compiler/main.ts(47,21): error TS2497: When writing ECMAScript imports, callable 'export ='-style modules can only be imported by turning on the 'esModuleInterop' flag and using a default import.
|
|
|
|
|
tests/cases/compiler/main.ts(50,1): error TS2693: 'y1' only refers to a type, but is being used as a value here.
|
|
|
|
|
tests/cases/compiler/main.ts(56,4): error TS2339: Property 'a' does not exist on type '() => any'.
|
|
|
|
|
tests/cases/compiler/main.ts(58,4): error TS2339: Property 'a' does not exist on type 'typeof Foo'.
|
|
|
|
|
tests/cases/compiler/main.ts(62,10): error TS2305: Module '"interface"' has no exported member 'a'.
|
|
|
|
|
tests/cases/compiler/main.ts(62,25): error TS2497: ECMAScript imports can only reference an 'export =' declaration with the 'esModuleInterop' flag enabled and by using default imports.
|
|
|
|
|
tests/cases/compiler/main.ts(62,25): error TS2497: When writing ECMAScript imports, callable 'export ='-style modules can only be imported by turning on the 'esModuleInterop' flag and using a default import.
|
|
|
|
|
tests/cases/compiler/main.ts(68,10): error TS2305: Module '"function"' has no exported member 'a'.
|
|
|
|
|
tests/cases/compiler/main.ts(68,25): error TS2497: ECMAScript imports can only reference an 'export =' declaration with the 'esModuleInterop' flag enabled and by using default imports.
|
|
|
|
|
tests/cases/compiler/main.ts(68,25): error TS2497: When writing ECMAScript imports, callable 'export ='-style modules can only be imported by turning on the 'esModuleInterop' flag and using a default import.
|
|
|
|
|
tests/cases/compiler/main.ts(70,10): error TS2305: Module '"class"' has no exported member 'a'.
|
|
|
|
|
tests/cases/compiler/main.ts(70,25): error TS2497: ECMAScript imports can only reference an 'export =' declaration with the 'esModuleInterop' flag enabled and by using default imports.
|
|
|
|
|
tests/cases/compiler/main.ts(70,25): error TS2497: When writing ECMAScript imports, callable 'export ='-style modules can only be imported by turning on the 'esModuleInterop' flag and using a default import.
|
|
|
|
|
tests/cases/compiler/main.ts(85,10): error TS2305: Module '"interface"' has no exported member 'a'.
|
|
|
|
|
tests/cases/compiler/main.ts(85,25): error TS2497: ECMAScript imports can only reference an 'export =' declaration with the 'esModuleInterop' flag enabled and by using default imports.
|
|
|
|
|
tests/cases/compiler/main.ts(85,25): error TS2497: When writing ECMAScript imports, callable 'export ='-style modules can only be imported by turning on the 'esModuleInterop' flag and using a default import.
|
|
|
|
|
tests/cases/compiler/main.ts(91,10): error TS2305: Module '"function"' has no exported member 'a'.
|
|
|
|
|
tests/cases/compiler/main.ts(91,25): error TS2497: ECMAScript imports can only reference an 'export =' declaration with the 'esModuleInterop' flag enabled and by using default imports.
|
|
|
|
|
tests/cases/compiler/main.ts(91,25): error TS2497: When writing ECMAScript imports, callable 'export ='-style modules can only be imported by turning on the 'esModuleInterop' flag and using a default import.
|
|
|
|
|
tests/cases/compiler/main.ts(93,10): error TS2305: Module '"class"' has no exported member 'a'.
|
|
|
|
|
tests/cases/compiler/main.ts(93,25): error TS2497: ECMAScript imports can only reference an 'export =' declaration with the 'esModuleInterop' flag enabled and by using default imports.
|
|
|
|
|
tests/cases/compiler/main.ts(93,25): error TS2497: When writing ECMAScript imports, callable 'export ='-style modules can only be imported by turning on the 'esModuleInterop' flag and using a default import.
|
|
|
|
|
tests/cases/compiler/main.ts(97,15): error TS2498: Module '"interface"' uses 'export =' and cannot be used with 'export *'.
|
|
|
|
|
tests/cases/compiler/main.ts(98,15): error TS2498: Module '"variable"' uses 'export =' and cannot be used with 'export *'.
|
|
|
|
|
tests/cases/compiler/main.ts(99,15): error TS2498: Module '"interface-variable"' uses 'export =' and cannot be used with 'export *'.
|
|
|
|
|
@@ -108,7 +108,7 @@ tests/cases/compiler/main.ts(106,15): error TS2498: Module '"class-module"' uses
|
|
|
|
|
// namespace import
|
|
|
|
|
import * as y1 from "interface";
|
|
|
|
|
~~~~~~~~~~~
|
|
|
|
|
!!! error TS2497: ECMAScript imports can only reference an 'export =' declaration with the 'esModuleInterop' flag enabled and by using default imports.
|
|
|
|
|
!!! error TS2497: When writing ECMAScript imports, callable 'export ='-style modules can only be imported by turning on the 'esModuleInterop' flag and using a default import.
|
|
|
|
|
import * as y2 from "variable";
|
|
|
|
|
import * as y3 from "interface-variable";
|
|
|
|
|
import * as y4 from "module";
|
|
|
|
|
@@ -116,11 +116,11 @@ tests/cases/compiler/main.ts(106,15): error TS2498: Module '"class-module"' uses
|
|
|
|
|
import * as y6 from "variable-module";
|
|
|
|
|
import * as y7 from "function";
|
|
|
|
|
~~~~~~~~~~
|
|
|
|
|
!!! error TS2497: ECMAScript imports can only reference an 'export =' declaration with the 'esModuleInterop' flag enabled and by using default imports.
|
|
|
|
|
!!! error TS2497: When writing ECMAScript imports, callable 'export ='-style modules can only be imported by turning on the 'esModuleInterop' flag and using a default import.
|
|
|
|
|
import * as y8 from "function-module";
|
|
|
|
|
import * as y9 from "class";
|
|
|
|
|
~~~~~~~
|
|
|
|
|
!!! error TS2497: ECMAScript imports can only reference an 'export =' declaration with the 'esModuleInterop' flag enabled and by using default imports.
|
|
|
|
|
!!! error TS2497: When writing ECMAScript imports, callable 'export ='-style modules can only be imported by turning on the 'esModuleInterop' flag and using a default import.
|
|
|
|
|
import * as y0 from "class-module";
|
|
|
|
|
|
|
|
|
|
y1.a;
|
|
|
|
|
@@ -145,7 +145,7 @@ tests/cases/compiler/main.ts(106,15): error TS2498: Module '"class-module"' uses
|
|
|
|
|
~
|
|
|
|
|
!!! error TS2305: Module '"interface"' has no exported member 'a'.
|
|
|
|
|
~~~~~~~~~~~
|
|
|
|
|
!!! error TS2497: ECMAScript imports can only reference an 'export =' declaration with the 'esModuleInterop' flag enabled and by using default imports.
|
|
|
|
|
!!! error TS2497: When writing ECMAScript imports, callable 'export ='-style modules can only be imported by turning on the 'esModuleInterop' flag and using a default import.
|
|
|
|
|
import { a as a2 } from "variable";
|
|
|
|
|
import { a as a3 } from "interface-variable";
|
|
|
|
|
import { a as a4 } from "module";
|
|
|
|
|
@@ -155,13 +155,13 @@ tests/cases/compiler/main.ts(106,15): error TS2498: Module '"class-module"' uses
|
|
|
|
|
~
|
|
|
|
|
!!! error TS2305: Module '"function"' has no exported member 'a'.
|
|
|
|
|
~~~~~~~~~~
|
|
|
|
|
!!! error TS2497: ECMAScript imports can only reference an 'export =' declaration with the 'esModuleInterop' flag enabled and by using default imports.
|
|
|
|
|
!!! error TS2497: When writing ECMAScript imports, callable 'export ='-style modules can only be imported by turning on the 'esModuleInterop' flag and using a default import.
|
|
|
|
|
import { a as a8 } from "function-module";
|
|
|
|
|
import { a as a9 } from "class";
|
|
|
|
|
~
|
|
|
|
|
!!! error TS2305: Module '"class"' has no exported member 'a'.
|
|
|
|
|
~~~~~~~
|
|
|
|
|
!!! error TS2497: ECMAScript imports can only reference an 'export =' declaration with the 'esModuleInterop' flag enabled and by using default imports.
|
|
|
|
|
!!! error TS2497: When writing ECMAScript imports, callable 'export ='-style modules can only be imported by turning on the 'esModuleInterop' flag and using a default import.
|
|
|
|
|
import { a as a0 } from "class-module";
|
|
|
|
|
|
|
|
|
|
a1;
|
|
|
|
|
@@ -180,7 +180,7 @@ tests/cases/compiler/main.ts(106,15): error TS2498: Module '"class-module"' uses
|
|
|
|
|
~
|
|
|
|
|
!!! error TS2305: Module '"interface"' has no exported member 'a'.
|
|
|
|
|
~~~~~~~~~~~
|
|
|
|
|
!!! error TS2497: ECMAScript imports can only reference an 'export =' declaration with the 'esModuleInterop' flag enabled and by using default imports.
|
|
|
|
|
!!! error TS2497: When writing ECMAScript imports, callable 'export ='-style modules can only be imported by turning on the 'esModuleInterop' flag and using a default import.
|
|
|
|
|
export { a as a2 } from "variable";
|
|
|
|
|
export { a as a3 } from "interface-variable";
|
|
|
|
|
export { a as a4 } from "module";
|
|
|
|
|
@@ -190,13 +190,13 @@ tests/cases/compiler/main.ts(106,15): error TS2498: Module '"class-module"' uses
|
|
|
|
|
~
|
|
|
|
|
!!! error TS2305: Module '"function"' has no exported member 'a'.
|
|
|
|
|
~~~~~~~~~~
|
|
|
|
|
!!! error TS2497: ECMAScript imports can only reference an 'export =' declaration with the 'esModuleInterop' flag enabled and by using default imports.
|
|
|
|
|
!!! error TS2497: When writing ECMAScript imports, callable 'export ='-style modules can only be imported by turning on the 'esModuleInterop' flag and using a default import.
|
|
|
|
|
export { a as a8 } from "function-module";
|
|
|
|
|
export { a as a9 } from "class";
|
|
|
|
|
~
|
|
|
|
|
!!! error TS2305: Module '"class"' has no exported member 'a'.
|
|
|
|
|
~~~~~~~
|
|
|
|
|
!!! error TS2497: ECMAScript imports can only reference an 'export =' declaration with the 'esModuleInterop' flag enabled and by using default imports.
|
|
|
|
|
!!! error TS2497: When writing ECMAScript imports, callable 'export ='-style modules can only be imported by turning on the 'esModuleInterop' flag and using a default import.
|
|
|
|
|
export { a as a0 } from "class-module";
|
|
|
|
|
|
|
|
|
|
// export-star
|
|
|
|
|
|