mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-22 02:35:48 -05:00
Update baselines from moving out of es2018
This commit is contained in:
@@ -113,7 +113,7 @@ namespace ts {
|
||||
start: undefined,
|
||||
length: undefined,
|
||||
}, {
|
||||
messageText: "Argument for '--module' option must be: 'none', 'commonjs', 'amd', 'system', 'umd', 'es6', 'es2015', 'es2018'.",
|
||||
messageText: "Argument for '--module' option must be: 'none', 'commonjs', 'amd', 'system', 'umd', 'es6', 'es2015', 'esnext'.",
|
||||
category: ts.Diagnostics.Argument_for_0_option_must_be_Colon_1.category,
|
||||
code: ts.Diagnostics.Argument_for_0_option_must_be_Colon_1.code,
|
||||
|
||||
|
||||
@@ -122,7 +122,7 @@ namespace ts {
|
||||
file: undefined,
|
||||
start: 0,
|
||||
length: 0,
|
||||
messageText: "Argument for '--module' option must be: 'none', 'commonjs', 'amd', 'system', 'umd', 'es6', 'es2015', 'es2018'.",
|
||||
messageText: "Argument for '--module' option must be: 'none', 'commonjs', 'amd', 'system', 'umd', 'es6', 'es2015', 'esnext'.",
|
||||
code: Diagnostics.Argument_for_0_option_must_be_Colon_1.code,
|
||||
category: Diagnostics.Argument_for_0_option_must_be_Colon_1.category
|
||||
}]
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
tests/cases/conformance/es2018/dynamicImport/1.ts(4,5): error TS2322: Type 'Promise<typeof "tests/cases/conformance/es2018/dynamicImport/defaultPath">' is not assignable to type 'Promise<typeof "tests/cases/conformance/es2018/dynamicImport/anotherModule">'.
|
||||
Type 'typeof "tests/cases/conformance/es2018/dynamicImport/defaultPath"' is not assignable to type 'typeof "tests/cases/conformance/es2018/dynamicImport/anotherModule"'.
|
||||
Property 'D' is missing in type 'typeof "tests/cases/conformance/es2018/dynamicImport/defaultPath"'.
|
||||
tests/cases/conformance/es2018/dynamicImport/1.ts(5,10): error TS2352: Type 'Promise<typeof "tests/cases/conformance/es2018/dynamicImport/defaultPath">' cannot be converted to type 'Promise<typeof "tests/cases/conformance/es2018/dynamicImport/anotherModule">'.
|
||||
Type 'typeof "tests/cases/conformance/es2018/dynamicImport/defaultPath"' is not comparable to type 'typeof "tests/cases/conformance/es2018/dynamicImport/anotherModule"'.
|
||||
Property 'D' is missing in type 'typeof "tests/cases/conformance/es2018/dynamicImport/defaultPath"'.
|
||||
tests/cases/conformance/dynamicImport/1.ts(4,5): error TS2322: Type 'Promise<typeof "tests/cases/conformance/dynamicImport/defaultPath">' is not assignable to type 'Promise<typeof "tests/cases/conformance/dynamicImport/anotherModule">'.
|
||||
Type 'typeof "tests/cases/conformance/dynamicImport/defaultPath"' is not assignable to type 'typeof "tests/cases/conformance/dynamicImport/anotherModule"'.
|
||||
Property 'D' is missing in type 'typeof "tests/cases/conformance/dynamicImport/defaultPath"'.
|
||||
tests/cases/conformance/dynamicImport/1.ts(5,10): error TS2352: Type 'Promise<typeof "tests/cases/conformance/dynamicImport/defaultPath">' cannot be converted to type 'Promise<typeof "tests/cases/conformance/dynamicImport/anotherModule">'.
|
||||
Type 'typeof "tests/cases/conformance/dynamicImport/defaultPath"' is not comparable to type 'typeof "tests/cases/conformance/dynamicImport/anotherModule"'.
|
||||
Property 'D' is missing in type 'typeof "tests/cases/conformance/dynamicImport/defaultPath"'.
|
||||
|
||||
|
||||
==== tests/cases/conformance/es2018/dynamicImport/anotherModule.ts (0 errors) ====
|
||||
==== tests/cases/conformance/dynamicImport/anotherModule.ts (0 errors) ====
|
||||
export class D{}
|
||||
|
||||
==== tests/cases/conformance/es2018/dynamicImport/defaultPath.ts (0 errors) ====
|
||||
==== tests/cases/conformance/dynamicImport/defaultPath.ts (0 errors) ====
|
||||
export class C {}
|
||||
|
||||
==== tests/cases/conformance/es2018/dynamicImport/1.ts (2 errors) ====
|
||||
==== tests/cases/conformance/dynamicImport/1.ts (2 errors) ====
|
||||
import * as defaultModule from "./defaultPath";
|
||||
import * as anotherModule from "./anotherModule";
|
||||
|
||||
let p1: Promise<typeof anotherModule> = import("./defaultPath");
|
||||
~~
|
||||
!!! error TS2322: Type 'Promise<typeof "tests/cases/conformance/es2018/dynamicImport/defaultPath">' is not assignable to type 'Promise<typeof "tests/cases/conformance/es2018/dynamicImport/anotherModule">'.
|
||||
!!! error TS2322: Type 'typeof "tests/cases/conformance/es2018/dynamicImport/defaultPath"' is not assignable to type 'typeof "tests/cases/conformance/es2018/dynamicImport/anotherModule"'.
|
||||
!!! error TS2322: Property 'D' is missing in type 'typeof "tests/cases/conformance/es2018/dynamicImport/defaultPath"'.
|
||||
!!! error TS2322: Type 'Promise<typeof "tests/cases/conformance/dynamicImport/defaultPath">' is not assignable to type 'Promise<typeof "tests/cases/conformance/dynamicImport/anotherModule">'.
|
||||
!!! error TS2322: Type 'typeof "tests/cases/conformance/dynamicImport/defaultPath"' is not assignable to type 'typeof "tests/cases/conformance/dynamicImport/anotherModule"'.
|
||||
!!! error TS2322: Property 'D' is missing in type 'typeof "tests/cases/conformance/dynamicImport/defaultPath"'.
|
||||
let p2 = import("./defaultPath") as Promise<typeof anotherModule>;
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
!!! error TS2352: Type 'Promise<typeof "tests/cases/conformance/es2018/dynamicImport/defaultPath">' cannot be converted to type 'Promise<typeof "tests/cases/conformance/es2018/dynamicImport/anotherModule">'.
|
||||
!!! error TS2352: Type 'typeof "tests/cases/conformance/es2018/dynamicImport/defaultPath"' is not comparable to type 'typeof "tests/cases/conformance/es2018/dynamicImport/anotherModule"'.
|
||||
!!! error TS2352: Property 'D' is missing in type 'typeof "tests/cases/conformance/es2018/dynamicImport/defaultPath"'.
|
||||
!!! error TS2352: Type 'Promise<typeof "tests/cases/conformance/dynamicImport/defaultPath">' cannot be converted to type 'Promise<typeof "tests/cases/conformance/dynamicImport/anotherModule">'.
|
||||
!!! error TS2352: Type 'typeof "tests/cases/conformance/dynamicImport/defaultPath"' is not comparable to type 'typeof "tests/cases/conformance/dynamicImport/anotherModule"'.
|
||||
!!! error TS2352: Property 'D' is missing in type 'typeof "tests/cases/conformance/dynamicImport/defaultPath"'.
|
||||
let p3: Promise<any> = import("./defaultPath");
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//// [tests/cases/conformance/es2018/dynamicImport/importCallExpressionCheckReturntype1.ts] ////
|
||||
//// [tests/cases/conformance/dynamicImport/importCallExpressionCheckReturntype1.ts] ////
|
||||
|
||||
//// [anotherModule.ts]
|
||||
export class D{}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
=== tests/cases/conformance/es2018/dynamicImport/importCallExpressionDeclarationEmit1.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/importCallExpressionDeclarationEmit1.ts ===
|
||||
declare function getSpecifier(): string;
|
||||
>getSpecifier : Symbol(getSpecifier, Decl(importCallExpressionDeclarationEmit1.ts, 0, 0))
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
=== tests/cases/conformance/es2018/dynamicImport/importCallExpressionDeclarationEmit1.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/importCallExpressionDeclarationEmit1.ts ===
|
||||
declare function getSpecifier(): string;
|
||||
>getSpecifier : () => string
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
tests/cases/conformance/es2018/dynamicImport/1.ts(1,5): error TS4023: Exported variable 'p1' has or is using name '"tests/cases/conformance/es2018/dynamicImport/0"' from external module "tests/cases/conformance/es2018/dynamicImport/0" but cannot be named.
|
||||
tests/cases/conformance/dynamicImport/1.ts(1,5): error TS4023: Exported variable 'p1' has or is using name '"tests/cases/conformance/dynamicImport/0"' from external module "tests/cases/conformance/dynamicImport/0" but cannot be named.
|
||||
|
||||
|
||||
==== tests/cases/conformance/es2018/dynamicImport/0.ts (0 errors) ====
|
||||
==== tests/cases/conformance/dynamicImport/0.ts (0 errors) ====
|
||||
export function foo() { return "foo"; }
|
||||
|
||||
==== tests/cases/conformance/es2018/dynamicImport/1.ts (1 errors) ====
|
||||
==== tests/cases/conformance/dynamicImport/1.ts (1 errors) ====
|
||||
var p1 = import("./0");
|
||||
~~
|
||||
!!! error TS4023: Exported variable 'p1' has or is using name '"tests/cases/conformance/es2018/dynamicImport/0"' from external module "tests/cases/conformance/es2018/dynamicImport/0" but cannot be named.
|
||||
!!! error TS4023: Exported variable 'p1' has or is using name '"tests/cases/conformance/dynamicImport/0"' from external module "tests/cases/conformance/dynamicImport/0" but cannot be named.
|
||||
@@ -1,4 +1,4 @@
|
||||
//// [tests/cases/conformance/es2018/dynamicImport/importCallExpressionDeclarationEmit2.ts] ////
|
||||
//// [tests/cases/conformance/dynamicImport/importCallExpressionDeclarationEmit2.ts] ////
|
||||
|
||||
//// [0.ts]
|
||||
export function foo() { return "foo"; }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//// [tests/cases/conformance/es2018/dynamicImport/importCallExpressionDeclarationEmit3.ts] ////
|
||||
//// [tests/cases/conformance/dynamicImport/importCallExpressionDeclarationEmit3.ts] ////
|
||||
|
||||
//// [0.ts]
|
||||
export function foo() { return "foo"; }
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
=== tests/cases/conformance/es2018/dynamicImport/0.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/0.ts ===
|
||||
export function foo() { return "foo"; }
|
||||
>foo : Symbol(foo, Decl(0.ts, 0, 0))
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/1.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/1.ts ===
|
||||
declare function getPath(): string;
|
||||
>getPath : Symbol(getPath, Decl(1.ts, 0, 0))
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
=== tests/cases/conformance/es2018/dynamicImport/0.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/0.ts ===
|
||||
export function foo() { return "foo"; }
|
||||
>foo : () => string
|
||||
>"foo" : "foo"
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/1.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/1.ts ===
|
||||
declare function getPath(): string;
|
||||
>getPath : () => string
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//// [tests/cases/conformance/es2018/dynamicImport/importCallExpressionES5AMD.ts] ////
|
||||
//// [tests/cases/conformance/dynamicImport/importCallExpressionES5AMD.ts] ////
|
||||
|
||||
//// [0.ts]
|
||||
export function foo() { return "foo"; }
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
=== tests/cases/conformance/es2018/dynamicImport/0.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/0.ts ===
|
||||
export function foo() { return "foo"; }
|
||||
>foo : Symbol(foo, Decl(0.ts, 0, 0))
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/1.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/1.ts ===
|
||||
import("./0");
|
||||
var p1 = import("./0");
|
||||
>p1 : Symbol(p1, Decl(1.ts, 1, 3))
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
=== tests/cases/conformance/es2018/dynamicImport/0.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/0.ts ===
|
||||
export function foo() { return "foo"; }
|
||||
>foo : () => string
|
||||
>"foo" : "foo"
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/1.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/1.ts ===
|
||||
import("./0");
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>"./0" : "./0"
|
||||
|
||||
var p1 = import("./0");
|
||||
>p1 : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>p1 : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>"./0" : "./0"
|
||||
|
||||
p1.then(zero => {
|
||||
>p1.then(zero => { return zero.foo();}) : Promise<string>
|
||||
>p1.then : <TResult1 = typeof "tests/cases/conformance/es2018/dynamicImport/0", TResult2 = never>(onfulfilled?: (value: typeof "tests/cases/conformance/es2018/dynamicImport/0") => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => Promise<TResult1 | TResult2>
|
||||
>p1 : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>then : <TResult1 = typeof "tests/cases/conformance/es2018/dynamicImport/0", TResult2 = never>(onfulfilled?: (value: typeof "tests/cases/conformance/es2018/dynamicImport/0") => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => Promise<TResult1 | TResult2>
|
||||
>zero => { return zero.foo();} : (zero: typeof "tests/cases/conformance/es2018/dynamicImport/0") => string
|
||||
>zero : typeof "tests/cases/conformance/es2018/dynamicImport/0"
|
||||
>p1.then : <TResult1 = typeof "tests/cases/conformance/dynamicImport/0", TResult2 = never>(onfulfilled?: (value: typeof "tests/cases/conformance/dynamicImport/0") => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => Promise<TResult1 | TResult2>
|
||||
>p1 : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>then : <TResult1 = typeof "tests/cases/conformance/dynamicImport/0", TResult2 = never>(onfulfilled?: (value: typeof "tests/cases/conformance/dynamicImport/0") => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => Promise<TResult1 | TResult2>
|
||||
>zero => { return zero.foo();} : (zero: typeof "tests/cases/conformance/dynamicImport/0") => string
|
||||
>zero : typeof "tests/cases/conformance/dynamicImport/0"
|
||||
|
||||
return zero.foo();
|
||||
>zero.foo() : string
|
||||
>zero.foo : () => string
|
||||
>zero : typeof "tests/cases/conformance/es2018/dynamicImport/0"
|
||||
>zero : typeof "tests/cases/conformance/dynamicImport/0"
|
||||
>foo : () => string
|
||||
|
||||
});
|
||||
@@ -33,7 +33,7 @@ function foo() {
|
||||
>foo : () => void
|
||||
|
||||
const p2 = import("./0");
|
||||
>p2 : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>p2 : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>"./0" : "./0"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//// [tests/cases/conformance/es2018/dynamicImport/importCallExpressionES5CJS.ts] ////
|
||||
//// [tests/cases/conformance/dynamicImport/importCallExpressionES5CJS.ts] ////
|
||||
|
||||
//// [0.ts]
|
||||
export function foo() { return "foo"; }
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
=== tests/cases/conformance/es2018/dynamicImport/0.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/0.ts ===
|
||||
export function foo() { return "foo"; }
|
||||
>foo : Symbol(foo, Decl(0.ts, 0, 0))
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/1.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/1.ts ===
|
||||
import("./0");
|
||||
var p1 = import("./0");
|
||||
>p1 : Symbol(p1, Decl(1.ts, 1, 3))
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
=== tests/cases/conformance/es2018/dynamicImport/0.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/0.ts ===
|
||||
export function foo() { return "foo"; }
|
||||
>foo : () => string
|
||||
>"foo" : "foo"
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/1.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/1.ts ===
|
||||
import("./0");
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>"./0" : "./0"
|
||||
|
||||
var p1 = import("./0");
|
||||
>p1 : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>p1 : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>"./0" : "./0"
|
||||
|
||||
p1.then(zero => {
|
||||
>p1.then(zero => { return zero.foo();}) : Promise<string>
|
||||
>p1.then : <TResult1 = typeof "tests/cases/conformance/es2018/dynamicImport/0", TResult2 = never>(onfulfilled?: (value: typeof "tests/cases/conformance/es2018/dynamicImport/0") => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => Promise<TResult1 | TResult2>
|
||||
>p1 : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>then : <TResult1 = typeof "tests/cases/conformance/es2018/dynamicImport/0", TResult2 = never>(onfulfilled?: (value: typeof "tests/cases/conformance/es2018/dynamicImport/0") => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => Promise<TResult1 | TResult2>
|
||||
>zero => { return zero.foo();} : (zero: typeof "tests/cases/conformance/es2018/dynamicImport/0") => string
|
||||
>zero : typeof "tests/cases/conformance/es2018/dynamicImport/0"
|
||||
>p1.then : <TResult1 = typeof "tests/cases/conformance/dynamicImport/0", TResult2 = never>(onfulfilled?: (value: typeof "tests/cases/conformance/dynamicImport/0") => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => Promise<TResult1 | TResult2>
|
||||
>p1 : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>then : <TResult1 = typeof "tests/cases/conformance/dynamicImport/0", TResult2 = never>(onfulfilled?: (value: typeof "tests/cases/conformance/dynamicImport/0") => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => Promise<TResult1 | TResult2>
|
||||
>zero => { return zero.foo();} : (zero: typeof "tests/cases/conformance/dynamicImport/0") => string
|
||||
>zero : typeof "tests/cases/conformance/dynamicImport/0"
|
||||
|
||||
return zero.foo();
|
||||
>zero.foo() : string
|
||||
>zero.foo : () => string
|
||||
>zero : typeof "tests/cases/conformance/es2018/dynamicImport/0"
|
||||
>zero : typeof "tests/cases/conformance/dynamicImport/0"
|
||||
>foo : () => string
|
||||
|
||||
});
|
||||
@@ -33,7 +33,7 @@ function foo() {
|
||||
>foo : () => void
|
||||
|
||||
const p2 = import("./0");
|
||||
>p2 : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>p2 : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>"./0" : "./0"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//// [tests/cases/conformance/es2018/dynamicImport/importCallExpressionES5System.ts] ////
|
||||
//// [tests/cases/conformance/dynamicImport/importCallExpressionES5System.ts] ////
|
||||
|
||||
//// [0.ts]
|
||||
export function foo() { return "foo"; }
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
=== tests/cases/conformance/es2018/dynamicImport/0.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/0.ts ===
|
||||
export function foo() { return "foo"; }
|
||||
>foo : Symbol(foo, Decl(0.ts, 0, 0))
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/1.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/1.ts ===
|
||||
import("./0");
|
||||
var p1 = import("./0");
|
||||
>p1 : Symbol(p1, Decl(1.ts, 1, 3))
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
=== tests/cases/conformance/es2018/dynamicImport/0.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/0.ts ===
|
||||
export function foo() { return "foo"; }
|
||||
>foo : () => string
|
||||
>"foo" : "foo"
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/1.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/1.ts ===
|
||||
import("./0");
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>"./0" : "./0"
|
||||
|
||||
var p1 = import("./0");
|
||||
>p1 : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>p1 : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>"./0" : "./0"
|
||||
|
||||
p1.then(zero => {
|
||||
>p1.then(zero => { return zero.foo();}) : Promise<string>
|
||||
>p1.then : <TResult1 = typeof "tests/cases/conformance/es2018/dynamicImport/0", TResult2 = never>(onfulfilled?: (value: typeof "tests/cases/conformance/es2018/dynamicImport/0") => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => Promise<TResult1 | TResult2>
|
||||
>p1 : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>then : <TResult1 = typeof "tests/cases/conformance/es2018/dynamicImport/0", TResult2 = never>(onfulfilled?: (value: typeof "tests/cases/conformance/es2018/dynamicImport/0") => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => Promise<TResult1 | TResult2>
|
||||
>zero => { return zero.foo();} : (zero: typeof "tests/cases/conformance/es2018/dynamicImport/0") => string
|
||||
>zero : typeof "tests/cases/conformance/es2018/dynamicImport/0"
|
||||
>p1.then : <TResult1 = typeof "tests/cases/conformance/dynamicImport/0", TResult2 = never>(onfulfilled?: (value: typeof "tests/cases/conformance/dynamicImport/0") => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => Promise<TResult1 | TResult2>
|
||||
>p1 : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>then : <TResult1 = typeof "tests/cases/conformance/dynamicImport/0", TResult2 = never>(onfulfilled?: (value: typeof "tests/cases/conformance/dynamicImport/0") => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => Promise<TResult1 | TResult2>
|
||||
>zero => { return zero.foo();} : (zero: typeof "tests/cases/conformance/dynamicImport/0") => string
|
||||
>zero : typeof "tests/cases/conformance/dynamicImport/0"
|
||||
|
||||
return zero.foo();
|
||||
>zero.foo() : string
|
||||
>zero.foo : () => string
|
||||
>zero : typeof "tests/cases/conformance/es2018/dynamicImport/0"
|
||||
>zero : typeof "tests/cases/conformance/dynamicImport/0"
|
||||
>foo : () => string
|
||||
|
||||
});
|
||||
@@ -33,7 +33,7 @@ function foo() {
|
||||
>foo : () => void
|
||||
|
||||
const p2 = import("./0");
|
||||
>p2 : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>p2 : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>"./0" : "./0"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//// [tests/cases/conformance/es2018/dynamicImport/importCallExpressionES5UMD.ts] ////
|
||||
//// [tests/cases/conformance/dynamicImport/importCallExpressionES5UMD.ts] ////
|
||||
|
||||
//// [0.ts]
|
||||
export function foo() { return "foo"; }
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
=== tests/cases/conformance/es2018/dynamicImport/0.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/0.ts ===
|
||||
export function foo() { return "foo"; }
|
||||
>foo : Symbol(foo, Decl(0.ts, 0, 0))
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/1.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/1.ts ===
|
||||
import("./0");
|
||||
var p1 = import("./0");
|
||||
>p1 : Symbol(p1, Decl(1.ts, 1, 3))
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
=== tests/cases/conformance/es2018/dynamicImport/0.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/0.ts ===
|
||||
export function foo() { return "foo"; }
|
||||
>foo : () => string
|
||||
>"foo" : "foo"
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/1.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/1.ts ===
|
||||
import("./0");
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>"./0" : "./0"
|
||||
|
||||
var p1 = import("./0");
|
||||
>p1 : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>p1 : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>"./0" : "./0"
|
||||
|
||||
p1.then(zero => {
|
||||
>p1.then(zero => { return zero.foo();}) : Promise<string>
|
||||
>p1.then : <TResult1 = typeof "tests/cases/conformance/es2018/dynamicImport/0", TResult2 = never>(onfulfilled?: (value: typeof "tests/cases/conformance/es2018/dynamicImport/0") => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => Promise<TResult1 | TResult2>
|
||||
>p1 : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>then : <TResult1 = typeof "tests/cases/conformance/es2018/dynamicImport/0", TResult2 = never>(onfulfilled?: (value: typeof "tests/cases/conformance/es2018/dynamicImport/0") => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => Promise<TResult1 | TResult2>
|
||||
>zero => { return zero.foo();} : (zero: typeof "tests/cases/conformance/es2018/dynamicImport/0") => string
|
||||
>zero : typeof "tests/cases/conformance/es2018/dynamicImport/0"
|
||||
>p1.then : <TResult1 = typeof "tests/cases/conformance/dynamicImport/0", TResult2 = never>(onfulfilled?: (value: typeof "tests/cases/conformance/dynamicImport/0") => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => Promise<TResult1 | TResult2>
|
||||
>p1 : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>then : <TResult1 = typeof "tests/cases/conformance/dynamicImport/0", TResult2 = never>(onfulfilled?: (value: typeof "tests/cases/conformance/dynamicImport/0") => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => Promise<TResult1 | TResult2>
|
||||
>zero => { return zero.foo();} : (zero: typeof "tests/cases/conformance/dynamicImport/0") => string
|
||||
>zero : typeof "tests/cases/conformance/dynamicImport/0"
|
||||
|
||||
return zero.foo();
|
||||
>zero.foo() : string
|
||||
>zero.foo : () => string
|
||||
>zero : typeof "tests/cases/conformance/es2018/dynamicImport/0"
|
||||
>zero : typeof "tests/cases/conformance/dynamicImport/0"
|
||||
>foo : () => string
|
||||
|
||||
});
|
||||
@@ -33,7 +33,7 @@ function foo() {
|
||||
>foo : () => void
|
||||
|
||||
const p2 = import("./0");
|
||||
>p2 : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>p2 : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>"./0" : "./0"
|
||||
}
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
tests/cases/conformance/es2018/dynamicImport/1.ts(1,1): error TS1323: Dynamic import cannot be used when targeting ECMAScript 2015 modules.
|
||||
tests/cases/conformance/es2018/dynamicImport/1.ts(2,10): error TS1323: Dynamic import cannot be used when targeting ECMAScript 2015 modules.
|
||||
tests/cases/conformance/es2018/dynamicImport/1.ts(8,16): error TS1323: Dynamic import cannot be used when targeting ECMAScript 2015 modules.
|
||||
tests/cases/conformance/dynamicImport/1.ts(1,1): error TS1323: Dynamic import cannot be used when targeting ECMAScript 2015 modules.
|
||||
tests/cases/conformance/dynamicImport/1.ts(2,10): error TS1323: Dynamic import cannot be used when targeting ECMAScript 2015 modules.
|
||||
tests/cases/conformance/dynamicImport/1.ts(8,16): error TS1323: Dynamic import cannot be used when targeting ECMAScript 2015 modules.
|
||||
|
||||
|
||||
==== tests/cases/conformance/es2018/dynamicImport/0.ts (0 errors) ====
|
||||
==== tests/cases/conformance/dynamicImport/0.ts (0 errors) ====
|
||||
export function foo() { return "foo"; }
|
||||
|
||||
==== tests/cases/conformance/es2018/dynamicImport/1.ts (3 errors) ====
|
||||
==== tests/cases/conformance/dynamicImport/1.ts (3 errors) ====
|
||||
import("./0");
|
||||
~~~~~~~~~~~~~
|
||||
!!! error TS1323: Dynamic import cannot be used when targeting ECMAScript 2015 modules.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//// [tests/cases/conformance/es2018/dynamicImport/importCallExpressionErrorInES2015.ts] ////
|
||||
//// [tests/cases/conformance/dynamicImport/importCallExpressionErrorInES2015.ts] ////
|
||||
|
||||
//// [0.ts]
|
||||
export function foo() { return "foo"; }
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
tests/cases/conformance/es2018/dynamicImport/importCallExpressionGrammarError.ts(5,8): error TS1325: Specifier of dynamic import cannot be spread element.
|
||||
tests/cases/conformance/es2018/dynamicImport/importCallExpressionGrammarError.ts(7,17): error TS1325: Specifier of dynamic import cannot be spread element.
|
||||
tests/cases/conformance/es2018/dynamicImport/importCallExpressionGrammarError.ts(8,12): error TS1324: Dynamic import must have one specifier as an argument.
|
||||
tests/cases/conformance/es2018/dynamicImport/importCallExpressionGrammarError.ts(9,19): error TS1135: Argument expression expected.
|
||||
tests/cases/conformance/es2018/dynamicImport/importCallExpressionGrammarError.ts(9,19): error TS7036: Dynamic import's specifier must be of type 'string', but here has type 'undefined'.
|
||||
tests/cases/conformance/es2018/dynamicImport/importCallExpressionGrammarError.ts(10,12): error TS1324: Dynamic import must have one specifier as an argument.
|
||||
tests/cases/conformance/es2018/dynamicImport/importCallExpressionGrammarError.ts(10,19): error TS2307: Cannot find module 'pathToModule'.
|
||||
tests/cases/conformance/dynamicImport/importCallExpressionGrammarError.ts(5,8): error TS1325: Specifier of dynamic import cannot be spread element.
|
||||
tests/cases/conformance/dynamicImport/importCallExpressionGrammarError.ts(7,17): error TS1325: Specifier of dynamic import cannot be spread element.
|
||||
tests/cases/conformance/dynamicImport/importCallExpressionGrammarError.ts(8,12): error TS1324: Dynamic import must have one specifier as an argument.
|
||||
tests/cases/conformance/dynamicImport/importCallExpressionGrammarError.ts(9,19): error TS1135: Argument expression expected.
|
||||
tests/cases/conformance/dynamicImport/importCallExpressionGrammarError.ts(9,19): error TS7036: Dynamic import's specifier must be of type 'string', but here has type 'undefined'.
|
||||
tests/cases/conformance/dynamicImport/importCallExpressionGrammarError.ts(10,12): error TS1324: Dynamic import must have one specifier as an argument.
|
||||
tests/cases/conformance/dynamicImport/importCallExpressionGrammarError.ts(10,19): error TS2307: Cannot find module 'pathToModule'.
|
||||
|
||||
|
||||
==== tests/cases/conformance/es2018/dynamicImport/importCallExpressionGrammarError.ts (7 errors) ====
|
||||
==== tests/cases/conformance/dynamicImport/importCallExpressionGrammarError.ts (7 errors) ====
|
||||
declare function getSpecifier(): string;
|
||||
declare var whatToLoad: boolean;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//// [tests/cases/conformance/es2018/dynamicImport/importCallExpressionInAMD1.ts] ////
|
||||
//// [tests/cases/conformance/dynamicImport/importCallExpressionInAMD1.ts] ////
|
||||
|
||||
//// [0.ts]
|
||||
export function foo() { return "foo"; }
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
=== tests/cases/conformance/es2018/dynamicImport/0.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/0.ts ===
|
||||
export function foo() { return "foo"; }
|
||||
>foo : Symbol(foo, Decl(0.ts, 0, 0))
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/1.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/1.ts ===
|
||||
import("./0");
|
||||
var p1 = import("./0");
|
||||
>p1 : Symbol(p1, Decl(1.ts, 1, 3))
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
=== tests/cases/conformance/es2018/dynamicImport/0.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/0.ts ===
|
||||
export function foo() { return "foo"; }
|
||||
>foo : () => string
|
||||
>"foo" : "foo"
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/1.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/1.ts ===
|
||||
import("./0");
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>"./0" : "./0"
|
||||
|
||||
var p1 = import("./0");
|
||||
>p1 : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>p1 : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>"./0" : "./0"
|
||||
|
||||
p1.then(zero => {
|
||||
>p1.then(zero => { return zero.foo();}) : Promise<string>
|
||||
>p1.then : <TResult1 = typeof "tests/cases/conformance/es2018/dynamicImport/0", TResult2 = never>(onfulfilled?: (value: typeof "tests/cases/conformance/es2018/dynamicImport/0") => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => Promise<TResult1 | TResult2>
|
||||
>p1 : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>then : <TResult1 = typeof "tests/cases/conformance/es2018/dynamicImport/0", TResult2 = never>(onfulfilled?: (value: typeof "tests/cases/conformance/es2018/dynamicImport/0") => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => Promise<TResult1 | TResult2>
|
||||
>zero => { return zero.foo();} : (zero: typeof "tests/cases/conformance/es2018/dynamicImport/0") => string
|
||||
>zero : typeof "tests/cases/conformance/es2018/dynamicImport/0"
|
||||
>p1.then : <TResult1 = typeof "tests/cases/conformance/dynamicImport/0", TResult2 = never>(onfulfilled?: (value: typeof "tests/cases/conformance/dynamicImport/0") => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => Promise<TResult1 | TResult2>
|
||||
>p1 : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>then : <TResult1 = typeof "tests/cases/conformance/dynamicImport/0", TResult2 = never>(onfulfilled?: (value: typeof "tests/cases/conformance/dynamicImport/0") => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => Promise<TResult1 | TResult2>
|
||||
>zero => { return zero.foo();} : (zero: typeof "tests/cases/conformance/dynamicImport/0") => string
|
||||
>zero : typeof "tests/cases/conformance/dynamicImport/0"
|
||||
|
||||
return zero.foo();
|
||||
>zero.foo() : string
|
||||
>zero.foo : () => string
|
||||
>zero : typeof "tests/cases/conformance/es2018/dynamicImport/0"
|
||||
>zero : typeof "tests/cases/conformance/dynamicImport/0"
|
||||
>foo : () => string
|
||||
|
||||
});
|
||||
@@ -33,7 +33,7 @@ function foo() {
|
||||
>foo : () => void
|
||||
|
||||
const p2 = import("./0");
|
||||
>p2 : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>p2 : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>"./0" : "./0"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//// [tests/cases/conformance/es2018/dynamicImport/importCallExpressionInAMD2.ts] ////
|
||||
//// [tests/cases/conformance/dynamicImport/importCallExpressionInAMD2.ts] ////
|
||||
|
||||
//// [0.ts]
|
||||
export class B {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
=== tests/cases/conformance/es2018/dynamicImport/0.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/0.ts ===
|
||||
export class B {
|
||||
>B : Symbol(B, Decl(0.ts, 0, 0))
|
||||
|
||||
@@ -6,7 +6,7 @@ export class B {
|
||||
>print : Symbol(B.print, Decl(0.ts, 0, 16))
|
||||
}
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/2.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/2.ts ===
|
||||
// We use Promise<any> for now as there is no way to specify shape of module object
|
||||
function foo(x: Promise<any>) {
|
||||
>foo : Symbol(foo, Decl(2.ts, 0, 0))
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
=== tests/cases/conformance/es2018/dynamicImport/0.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/0.ts ===
|
||||
export class B {
|
||||
>B : B
|
||||
|
||||
@@ -7,7 +7,7 @@ export class B {
|
||||
>"I am B" : "I am B"
|
||||
}
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/2.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/2.ts ===
|
||||
// We use Promise<any> for now as there is no way to specify shape of module object
|
||||
function foo(x: Promise<any>) {
|
||||
>foo : (x: Promise<any>) => void
|
||||
@@ -41,6 +41,6 @@ function foo(x: Promise<any>) {
|
||||
foo(import("./0"));
|
||||
>foo(import("./0")) : void
|
||||
>foo : (x: Promise<any>) => void
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>"./0" : "./0"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//// [tests/cases/conformance/es2018/dynamicImport/importCallExpressionInAMD3.ts] ////
|
||||
//// [tests/cases/conformance/dynamicImport/importCallExpressionInAMD3.ts] ////
|
||||
|
||||
//// [0.ts]
|
||||
export class B {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
=== tests/cases/conformance/es2018/dynamicImport/0.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/0.ts ===
|
||||
export class B {
|
||||
>B : Symbol(B, Decl(0.ts, 0, 0))
|
||||
|
||||
@@ -6,7 +6,7 @@ export class B {
|
||||
>print : Symbol(B.print, Decl(0.ts, 0, 16))
|
||||
}
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/2.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/2.ts ===
|
||||
async function foo() {
|
||||
>foo : Symbol(foo, Decl(2.ts, 0, 0))
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
=== tests/cases/conformance/es2018/dynamicImport/0.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/0.ts ===
|
||||
export class B {
|
||||
>B : B
|
||||
|
||||
@@ -7,16 +7,16 @@ export class B {
|
||||
>"I am B" : "I am B"
|
||||
}
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/2.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/2.ts ===
|
||||
async function foo() {
|
||||
>foo : () => Promise<void>
|
||||
|
||||
class C extends (await import("./0")).B {}
|
||||
>C : C
|
||||
>(await import("./0")).B : B
|
||||
>(await import("./0")) : typeof "tests/cases/conformance/es2018/dynamicImport/0"
|
||||
>await import("./0") : typeof "tests/cases/conformance/es2018/dynamicImport/0"
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>(await import("./0")) : typeof "tests/cases/conformance/dynamicImport/0"
|
||||
>await import("./0") : typeof "tests/cases/conformance/dynamicImport/0"
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>"./0" : "./0"
|
||||
>B : typeof B
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//// [tests/cases/conformance/es2018/dynamicImport/importCallExpressionInAMD4.ts] ////
|
||||
//// [tests/cases/conformance/dynamicImport/importCallExpressionInAMD4.ts] ////
|
||||
|
||||
//// [0.ts]
|
||||
export class B {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
=== tests/cases/conformance/es2018/dynamicImport/0.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/0.ts ===
|
||||
export class B {
|
||||
>B : Symbol(B, Decl(0.ts, 0, 0))
|
||||
|
||||
@@ -9,11 +9,11 @@ export class B {
|
||||
export function foo() { return "foo" }
|
||||
>foo : Symbol(foo, Decl(0.ts, 2, 1))
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/1.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/1.ts ===
|
||||
export function backup() { return "backup"; }
|
||||
>backup : Symbol(backup, Decl(1.ts, 0, 0))
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/2.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/2.ts ===
|
||||
declare var console: any;
|
||||
>console : Symbol(console, Decl(2.ts, 0, 11))
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
=== tests/cases/conformance/es2018/dynamicImport/0.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/0.ts ===
|
||||
export class B {
|
||||
>B : B
|
||||
|
||||
@@ -11,12 +11,12 @@ export function foo() { return "foo" }
|
||||
>foo : () => string
|
||||
>"foo" : "foo"
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/1.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/1.ts ===
|
||||
export function backup() { return "backup"; }
|
||||
>backup : () => string
|
||||
>"backup" : "backup"
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/2.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/2.ts ===
|
||||
declare var console: any;
|
||||
>console : any
|
||||
|
||||
@@ -24,8 +24,8 @@ class C {
|
||||
>C : C
|
||||
|
||||
private myModule = import("./0");
|
||||
>myModule : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>myModule : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>"./0" : "./0"
|
||||
|
||||
method() {
|
||||
@@ -33,13 +33,13 @@ class C {
|
||||
|
||||
this.myModule.then(Zero => {
|
||||
>this.myModule.then(Zero => { console.log(Zero.foo()); }, async err => { console.log(err); let one = await import("./1"); console.log(one.backup()); }) : Promise<void>
|
||||
>this.myModule.then : <TResult1 = typeof "tests/cases/conformance/es2018/dynamicImport/0", TResult2 = never>(onfulfilled?: (value: typeof "tests/cases/conformance/es2018/dynamicImport/0") => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => Promise<TResult1 | TResult2>
|
||||
>this.myModule : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>this.myModule.then : <TResult1 = typeof "tests/cases/conformance/dynamicImport/0", TResult2 = never>(onfulfilled?: (value: typeof "tests/cases/conformance/dynamicImport/0") => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => Promise<TResult1 | TResult2>
|
||||
>this.myModule : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>this : this
|
||||
>myModule : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>then : <TResult1 = typeof "tests/cases/conformance/es2018/dynamicImport/0", TResult2 = never>(onfulfilled?: (value: typeof "tests/cases/conformance/es2018/dynamicImport/0") => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => Promise<TResult1 | TResult2>
|
||||
>Zero => { console.log(Zero.foo()); } : (Zero: typeof "tests/cases/conformance/es2018/dynamicImport/0") => void
|
||||
>Zero : typeof "tests/cases/conformance/es2018/dynamicImport/0"
|
||||
>myModule : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>then : <TResult1 = typeof "tests/cases/conformance/dynamicImport/0", TResult2 = never>(onfulfilled?: (value: typeof "tests/cases/conformance/dynamicImport/0") => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => Promise<TResult1 | TResult2>
|
||||
>Zero => { console.log(Zero.foo()); } : (Zero: typeof "tests/cases/conformance/dynamicImport/0") => void
|
||||
>Zero : typeof "tests/cases/conformance/dynamicImport/0"
|
||||
|
||||
console.log(Zero.foo());
|
||||
>console.log(Zero.foo()) : any
|
||||
@@ -48,7 +48,7 @@ class C {
|
||||
>log : any
|
||||
>Zero.foo() : string
|
||||
>Zero.foo : () => string
|
||||
>Zero : typeof "tests/cases/conformance/es2018/dynamicImport/0"
|
||||
>Zero : typeof "tests/cases/conformance/dynamicImport/0"
|
||||
>foo : () => string
|
||||
|
||||
}, async err => {
|
||||
@@ -63,9 +63,9 @@ class C {
|
||||
>err : any
|
||||
|
||||
let one = await import("./1");
|
||||
>one : typeof "tests/cases/conformance/es2018/dynamicImport/1"
|
||||
>await import("./1") : typeof "tests/cases/conformance/es2018/dynamicImport/1"
|
||||
>import("./1") : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/1">
|
||||
>one : typeof "tests/cases/conformance/dynamicImport/1"
|
||||
>await import("./1") : typeof "tests/cases/conformance/dynamicImport/1"
|
||||
>import("./1") : Promise<typeof "tests/cases/conformance/dynamicImport/1">
|
||||
>"./1" : "./1"
|
||||
|
||||
console.log(one.backup());
|
||||
@@ -75,7 +75,7 @@ class C {
|
||||
>log : any
|
||||
>one.backup() : string
|
||||
>one.backup : () => string
|
||||
>one : typeof "tests/cases/conformance/es2018/dynamicImport/1"
|
||||
>one : typeof "tests/cases/conformance/dynamicImport/1"
|
||||
>backup : () => string
|
||||
|
||||
});
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//// [tests/cases/conformance/es2018/dynamicImport/importCallExpressionInCJS1.ts] ////
|
||||
//// [tests/cases/conformance/dynamicImport/importCallExpressionInCJS1.ts] ////
|
||||
|
||||
//// [0.ts]
|
||||
export function foo() { return "foo"; }
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
=== tests/cases/conformance/es2018/dynamicImport/0.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/0.ts ===
|
||||
export function foo() { return "foo"; }
|
||||
>foo : Symbol(foo, Decl(0.ts, 0, 0))
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/1.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/1.ts ===
|
||||
import("./0");
|
||||
var p1 = import("./0");
|
||||
>p1 : Symbol(p1, Decl(1.ts, 1, 3))
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
=== tests/cases/conformance/es2018/dynamicImport/0.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/0.ts ===
|
||||
export function foo() { return "foo"; }
|
||||
>foo : () => string
|
||||
>"foo" : "foo"
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/1.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/1.ts ===
|
||||
import("./0");
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>"./0" : "./0"
|
||||
|
||||
var p1 = import("./0");
|
||||
>p1 : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>p1 : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>"./0" : "./0"
|
||||
|
||||
p1.then(zero => {
|
||||
>p1.then(zero => { return zero.foo();}) : Promise<string>
|
||||
>p1.then : <TResult1 = typeof "tests/cases/conformance/es2018/dynamicImport/0", TResult2 = never>(onfulfilled?: (value: typeof "tests/cases/conformance/es2018/dynamicImport/0") => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => Promise<TResult1 | TResult2>
|
||||
>p1 : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>then : <TResult1 = typeof "tests/cases/conformance/es2018/dynamicImport/0", TResult2 = never>(onfulfilled?: (value: typeof "tests/cases/conformance/es2018/dynamicImport/0") => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => Promise<TResult1 | TResult2>
|
||||
>zero => { return zero.foo();} : (zero: typeof "tests/cases/conformance/es2018/dynamicImport/0") => string
|
||||
>zero : typeof "tests/cases/conformance/es2018/dynamicImport/0"
|
||||
>p1.then : <TResult1 = typeof "tests/cases/conformance/dynamicImport/0", TResult2 = never>(onfulfilled?: (value: typeof "tests/cases/conformance/dynamicImport/0") => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => Promise<TResult1 | TResult2>
|
||||
>p1 : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>then : <TResult1 = typeof "tests/cases/conformance/dynamicImport/0", TResult2 = never>(onfulfilled?: (value: typeof "tests/cases/conformance/dynamicImport/0") => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => Promise<TResult1 | TResult2>
|
||||
>zero => { return zero.foo();} : (zero: typeof "tests/cases/conformance/dynamicImport/0") => string
|
||||
>zero : typeof "tests/cases/conformance/dynamicImport/0"
|
||||
|
||||
return zero.foo();
|
||||
>zero.foo() : string
|
||||
>zero.foo : () => string
|
||||
>zero : typeof "tests/cases/conformance/es2018/dynamicImport/0"
|
||||
>zero : typeof "tests/cases/conformance/dynamicImport/0"
|
||||
>foo : () => string
|
||||
|
||||
});
|
||||
@@ -33,7 +33,7 @@ function foo() {
|
||||
>foo : () => void
|
||||
|
||||
const p2 = import("./0");
|
||||
>p2 : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>p2 : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>"./0" : "./0"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//// [tests/cases/conformance/es2018/dynamicImport/importCallExpressionInCJS2.ts] ////
|
||||
//// [tests/cases/conformance/dynamicImport/importCallExpressionInCJS2.ts] ////
|
||||
|
||||
//// [0.ts]
|
||||
export function foo() { return "foo"; }
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
=== tests/cases/conformance/es2018/dynamicImport/0.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/0.ts ===
|
||||
export function foo() { return "foo"; }
|
||||
>foo : Symbol(foo, Decl(0.ts, 0, 0))
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/1.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/1.ts ===
|
||||
export function backup() { return "backup"; }
|
||||
>backup : Symbol(backup, Decl(1.ts, 0, 0))
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/2.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/2.ts ===
|
||||
async function compute(promise: Promise<any>) {
|
||||
>compute : Symbol(compute, Decl(2.ts, 0, 0))
|
||||
>promise : Symbol(promise, Decl(2.ts, 0, 23))
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
=== tests/cases/conformance/es2018/dynamicImport/0.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/0.ts ===
|
||||
export function foo() { return "foo"; }
|
||||
>foo : () => string
|
||||
>"foo" : "foo"
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/1.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/1.ts ===
|
||||
export function backup() { return "backup"; }
|
||||
>backup : () => string
|
||||
>"backup" : "backup"
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/2.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/2.ts ===
|
||||
async function compute(promise: Promise<any>) {
|
||||
>compute : (promise: Promise<any>) => Promise<any>
|
||||
>promise : Promise<any>
|
||||
@@ -24,10 +24,10 @@ async function compute(promise: Promise<any>) {
|
||||
>j : any
|
||||
|
||||
j = await import("./1");
|
||||
>j = await import("./1") : typeof "tests/cases/conformance/es2018/dynamicImport/1"
|
||||
>j = await import("./1") : typeof "tests/cases/conformance/dynamicImport/1"
|
||||
>j : any
|
||||
>await import("./1") : typeof "tests/cases/conformance/es2018/dynamicImport/1"
|
||||
>import("./1") : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/1">
|
||||
>await import("./1") : typeof "tests/cases/conformance/dynamicImport/1"
|
||||
>import("./1") : Promise<typeof "tests/cases/conformance/dynamicImport/1">
|
||||
>"./1" : "./1"
|
||||
|
||||
return j.backup();
|
||||
@@ -46,6 +46,6 @@ async function compute(promise: Promise<any>) {
|
||||
compute(import("./0"));
|
||||
>compute(import("./0")) : Promise<any>
|
||||
>compute : (promise: Promise<any>) => Promise<any>
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>"./0" : "./0"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//// [tests/cases/conformance/es2018/dynamicImport/importCallExpressionInCJS3.ts] ////
|
||||
//// [tests/cases/conformance/dynamicImport/importCallExpressionInCJS3.ts] ////
|
||||
|
||||
//// [0.ts]
|
||||
export class B {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
=== tests/cases/conformance/es2018/dynamicImport/0.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/0.ts ===
|
||||
export class B {
|
||||
>B : Symbol(B, Decl(0.ts, 0, 0))
|
||||
|
||||
@@ -6,7 +6,7 @@ export class B {
|
||||
>print : Symbol(B.print, Decl(0.ts, 0, 16))
|
||||
}
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/2.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/2.ts ===
|
||||
// We use Promise<any> for now as there is no way to specify shape of module object
|
||||
function foo(x: Promise<any>) {
|
||||
>foo : Symbol(foo, Decl(2.ts, 0, 0))
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
=== tests/cases/conformance/es2018/dynamicImport/0.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/0.ts ===
|
||||
export class B {
|
||||
>B : B
|
||||
|
||||
@@ -7,7 +7,7 @@ export class B {
|
||||
>"I am B" : "I am B"
|
||||
}
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/2.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/2.ts ===
|
||||
// We use Promise<any> for now as there is no way to specify shape of module object
|
||||
function foo(x: Promise<any>) {
|
||||
>foo : (x: Promise<any>) => void
|
||||
@@ -41,6 +41,6 @@ function foo(x: Promise<any>) {
|
||||
foo(import("./0"));
|
||||
>foo(import("./0")) : void
|
||||
>foo : (x: Promise<any>) => void
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>"./0" : "./0"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//// [tests/cases/conformance/es2018/dynamicImport/importCallExpressionInCJS4.ts] ////
|
||||
//// [tests/cases/conformance/dynamicImport/importCallExpressionInCJS4.ts] ////
|
||||
|
||||
//// [0.ts]
|
||||
export class B {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
=== tests/cases/conformance/es2018/dynamicImport/0.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/0.ts ===
|
||||
export class B {
|
||||
>B : Symbol(B, Decl(0.ts, 0, 0))
|
||||
|
||||
@@ -6,7 +6,7 @@ export class B {
|
||||
>print : Symbol(B.print, Decl(0.ts, 0, 16))
|
||||
}
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/2.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/2.ts ===
|
||||
async function foo() {
|
||||
>foo : Symbol(foo, Decl(2.ts, 0, 0))
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
=== tests/cases/conformance/es2018/dynamicImport/0.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/0.ts ===
|
||||
export class B {
|
||||
>B : B
|
||||
|
||||
@@ -7,16 +7,16 @@ export class B {
|
||||
>"I am B" : "I am B"
|
||||
}
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/2.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/2.ts ===
|
||||
async function foo() {
|
||||
>foo : () => Promise<void>
|
||||
|
||||
class C extends (await import("./0")).B {}
|
||||
>C : C
|
||||
>(await import("./0")).B : B
|
||||
>(await import("./0")) : typeof "tests/cases/conformance/es2018/dynamicImport/0"
|
||||
>await import("./0") : typeof "tests/cases/conformance/es2018/dynamicImport/0"
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>(await import("./0")) : typeof "tests/cases/conformance/dynamicImport/0"
|
||||
>await import("./0") : typeof "tests/cases/conformance/dynamicImport/0"
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>"./0" : "./0"
|
||||
>B : typeof B
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//// [tests/cases/conformance/es2018/dynamicImport/importCallExpressionInCJS5.ts] ////
|
||||
//// [tests/cases/conformance/dynamicImport/importCallExpressionInCJS5.ts] ////
|
||||
|
||||
//// [0.ts]
|
||||
export class B {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
=== tests/cases/conformance/es2018/dynamicImport/0.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/0.ts ===
|
||||
export class B {
|
||||
>B : Symbol(B, Decl(0.ts, 0, 0))
|
||||
|
||||
@@ -9,11 +9,11 @@ export class B {
|
||||
export function foo() { return "foo" }
|
||||
>foo : Symbol(foo, Decl(0.ts, 2, 1))
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/1.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/1.ts ===
|
||||
export function backup() { return "backup"; }
|
||||
>backup : Symbol(backup, Decl(1.ts, 0, 0))
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/2.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/2.ts ===
|
||||
declare var console: any;
|
||||
>console : Symbol(console, Decl(2.ts, 0, 11))
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
=== tests/cases/conformance/es2018/dynamicImport/0.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/0.ts ===
|
||||
export class B {
|
||||
>B : B
|
||||
|
||||
@@ -11,12 +11,12 @@ export function foo() { return "foo" }
|
||||
>foo : () => string
|
||||
>"foo" : "foo"
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/1.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/1.ts ===
|
||||
export function backup() { return "backup"; }
|
||||
>backup : () => string
|
||||
>"backup" : "backup"
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/2.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/2.ts ===
|
||||
declare var console: any;
|
||||
>console : any
|
||||
|
||||
@@ -24,8 +24,8 @@ class C {
|
||||
>C : C
|
||||
|
||||
private myModule = import("./0");
|
||||
>myModule : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>myModule : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>"./0" : "./0"
|
||||
|
||||
method() {
|
||||
@@ -33,13 +33,13 @@ class C {
|
||||
|
||||
this.myModule.then(Zero => {
|
||||
>this.myModule.then(Zero => { console.log(Zero.foo()); }, async err => { console.log(err); let one = await import("./1"); console.log(one.backup()); }) : Promise<void>
|
||||
>this.myModule.then : <TResult1 = typeof "tests/cases/conformance/es2018/dynamicImport/0", TResult2 = never>(onfulfilled?: (value: typeof "tests/cases/conformance/es2018/dynamicImport/0") => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => Promise<TResult1 | TResult2>
|
||||
>this.myModule : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>this.myModule.then : <TResult1 = typeof "tests/cases/conformance/dynamicImport/0", TResult2 = never>(onfulfilled?: (value: typeof "tests/cases/conformance/dynamicImport/0") => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => Promise<TResult1 | TResult2>
|
||||
>this.myModule : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>this : this
|
||||
>myModule : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>then : <TResult1 = typeof "tests/cases/conformance/es2018/dynamicImport/0", TResult2 = never>(onfulfilled?: (value: typeof "tests/cases/conformance/es2018/dynamicImport/0") => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => Promise<TResult1 | TResult2>
|
||||
>Zero => { console.log(Zero.foo()); } : (Zero: typeof "tests/cases/conformance/es2018/dynamicImport/0") => void
|
||||
>Zero : typeof "tests/cases/conformance/es2018/dynamicImport/0"
|
||||
>myModule : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>then : <TResult1 = typeof "tests/cases/conformance/dynamicImport/0", TResult2 = never>(onfulfilled?: (value: typeof "tests/cases/conformance/dynamicImport/0") => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => Promise<TResult1 | TResult2>
|
||||
>Zero => { console.log(Zero.foo()); } : (Zero: typeof "tests/cases/conformance/dynamicImport/0") => void
|
||||
>Zero : typeof "tests/cases/conformance/dynamicImport/0"
|
||||
|
||||
console.log(Zero.foo());
|
||||
>console.log(Zero.foo()) : any
|
||||
@@ -48,7 +48,7 @@ class C {
|
||||
>log : any
|
||||
>Zero.foo() : string
|
||||
>Zero.foo : () => string
|
||||
>Zero : typeof "tests/cases/conformance/es2018/dynamicImport/0"
|
||||
>Zero : typeof "tests/cases/conformance/dynamicImport/0"
|
||||
>foo : () => string
|
||||
|
||||
}, async err => {
|
||||
@@ -63,9 +63,9 @@ class C {
|
||||
>err : any
|
||||
|
||||
let one = await import("./1");
|
||||
>one : typeof "tests/cases/conformance/es2018/dynamicImport/1"
|
||||
>await import("./1") : typeof "tests/cases/conformance/es2018/dynamicImport/1"
|
||||
>import("./1") : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/1">
|
||||
>one : typeof "tests/cases/conformance/dynamicImport/1"
|
||||
>await import("./1") : typeof "tests/cases/conformance/dynamicImport/1"
|
||||
>import("./1") : Promise<typeof "tests/cases/conformance/dynamicImport/1">
|
||||
>"./1" : "./1"
|
||||
|
||||
console.log(one.backup());
|
||||
@@ -75,7 +75,7 @@ class C {
|
||||
>log : any
|
||||
>one.backup() : string
|
||||
>one.backup : () => string
|
||||
>one : typeof "tests/cases/conformance/es2018/dynamicImport/1"
|
||||
>one : typeof "tests/cases/conformance/dynamicImport/1"
|
||||
>backup : () => string
|
||||
|
||||
});
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//// [tests/cases/conformance/es2018/dynamicImport/importCallExpressionInScriptContext1.ts] ////
|
||||
//// [tests/cases/conformance/dynamicImport/importCallExpressionInScriptContext1.ts] ////
|
||||
|
||||
//// [0.ts]
|
||||
export function foo() { return "foo"; }
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
=== tests/cases/conformance/es2018/dynamicImport/0.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/0.ts ===
|
||||
export function foo() { return "foo"; }
|
||||
>foo : Symbol(foo, Decl(0.ts, 0, 0))
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/1.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/1.ts ===
|
||||
var p1 = import("./0");
|
||||
>p1 : Symbol(p1, Decl(1.ts, 0, 3))
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
=== tests/cases/conformance/es2018/dynamicImport/0.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/0.ts ===
|
||||
export function foo() { return "foo"; }
|
||||
>foo : () => string
|
||||
>"foo" : "foo"
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/1.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/1.ts ===
|
||||
var p1 = import("./0");
|
||||
>p1 : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>p1 : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>"./0" : "./0"
|
||||
|
||||
function arguments() { } // this is allow as the file doesn't have implicit "use strict"
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
tests/cases/conformance/es2018/dynamicImport/1.ts(3,10): error TS1100: Invalid use of 'arguments' in strict mode.
|
||||
tests/cases/conformance/dynamicImport/1.ts(3,10): error TS1100: Invalid use of 'arguments' in strict mode.
|
||||
|
||||
|
||||
==== tests/cases/conformance/es2018/dynamicImport/0.ts (0 errors) ====
|
||||
==== tests/cases/conformance/dynamicImport/0.ts (0 errors) ====
|
||||
export function foo() { return "foo"; }
|
||||
|
||||
==== tests/cases/conformance/es2018/dynamicImport/1.ts (1 errors) ====
|
||||
==== tests/cases/conformance/dynamicImport/1.ts (1 errors) ====
|
||||
"use strict"
|
||||
var p1 = import("./0");
|
||||
function arguments() { }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//// [tests/cases/conformance/es2018/dynamicImport/importCallExpressionInScriptContext2.ts] ////
|
||||
//// [tests/cases/conformance/dynamicImport/importCallExpressionInScriptContext2.ts] ////
|
||||
|
||||
//// [0.ts]
|
||||
export function foo() { return "foo"; }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//// [tests/cases/conformance/es2018/dynamicImport/importCallExpressionInSystem1.ts] ////
|
||||
//// [tests/cases/conformance/dynamicImport/importCallExpressionInSystem1.ts] ////
|
||||
|
||||
//// [0.ts]
|
||||
export function foo() { return "foo"; }
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
=== tests/cases/conformance/es2018/dynamicImport/0.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/0.ts ===
|
||||
export function foo() { return "foo"; }
|
||||
>foo : Symbol(foo, Decl(0.ts, 0, 0))
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/1.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/1.ts ===
|
||||
import("./0");
|
||||
var p1 = import("./0");
|
||||
>p1 : Symbol(p1, Decl(1.ts, 1, 3))
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
=== tests/cases/conformance/es2018/dynamicImport/0.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/0.ts ===
|
||||
export function foo() { return "foo"; }
|
||||
>foo : () => string
|
||||
>"foo" : "foo"
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/1.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/1.ts ===
|
||||
import("./0");
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>"./0" : "./0"
|
||||
|
||||
var p1 = import("./0");
|
||||
>p1 : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>p1 : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>"./0" : "./0"
|
||||
|
||||
p1.then(zero => {
|
||||
>p1.then(zero => { return zero.foo();}) : Promise<string>
|
||||
>p1.then : <TResult1 = typeof "tests/cases/conformance/es2018/dynamicImport/0", TResult2 = never>(onfulfilled?: (value: typeof "tests/cases/conformance/es2018/dynamicImport/0") => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => Promise<TResult1 | TResult2>
|
||||
>p1 : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>then : <TResult1 = typeof "tests/cases/conformance/es2018/dynamicImport/0", TResult2 = never>(onfulfilled?: (value: typeof "tests/cases/conformance/es2018/dynamicImport/0") => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => Promise<TResult1 | TResult2>
|
||||
>zero => { return zero.foo();} : (zero: typeof "tests/cases/conformance/es2018/dynamicImport/0") => string
|
||||
>zero : typeof "tests/cases/conformance/es2018/dynamicImport/0"
|
||||
>p1.then : <TResult1 = typeof "tests/cases/conformance/dynamicImport/0", TResult2 = never>(onfulfilled?: (value: typeof "tests/cases/conformance/dynamicImport/0") => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => Promise<TResult1 | TResult2>
|
||||
>p1 : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>then : <TResult1 = typeof "tests/cases/conformance/dynamicImport/0", TResult2 = never>(onfulfilled?: (value: typeof "tests/cases/conformance/dynamicImport/0") => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => Promise<TResult1 | TResult2>
|
||||
>zero => { return zero.foo();} : (zero: typeof "tests/cases/conformance/dynamicImport/0") => string
|
||||
>zero : typeof "tests/cases/conformance/dynamicImport/0"
|
||||
|
||||
return zero.foo();
|
||||
>zero.foo() : string
|
||||
>zero.foo : () => string
|
||||
>zero : typeof "tests/cases/conformance/es2018/dynamicImport/0"
|
||||
>zero : typeof "tests/cases/conformance/dynamicImport/0"
|
||||
>foo : () => string
|
||||
|
||||
});
|
||||
@@ -33,7 +33,7 @@ function foo() {
|
||||
>foo : () => void
|
||||
|
||||
const p2 = import("./0");
|
||||
>p2 : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>p2 : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>"./0" : "./0"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//// [tests/cases/conformance/es2018/dynamicImport/importCallExpressionInSystem2.ts] ////
|
||||
//// [tests/cases/conformance/dynamicImport/importCallExpressionInSystem2.ts] ////
|
||||
|
||||
//// [0.ts]
|
||||
export class B {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
=== tests/cases/conformance/es2018/dynamicImport/0.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/0.ts ===
|
||||
export class B {
|
||||
>B : Symbol(B, Decl(0.ts, 0, 0))
|
||||
|
||||
@@ -6,7 +6,7 @@ export class B {
|
||||
>print : Symbol(B.print, Decl(0.ts, 0, 16))
|
||||
}
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/2.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/2.ts ===
|
||||
// We use Promise<any> for now as there is no way to specify shape of module object
|
||||
function foo(x: Promise<any>) {
|
||||
>foo : Symbol(foo, Decl(2.ts, 0, 0))
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
=== tests/cases/conformance/es2018/dynamicImport/0.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/0.ts ===
|
||||
export class B {
|
||||
>B : B
|
||||
|
||||
@@ -7,7 +7,7 @@ export class B {
|
||||
>"I am B" : "I am B"
|
||||
}
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/2.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/2.ts ===
|
||||
// We use Promise<any> for now as there is no way to specify shape of module object
|
||||
function foo(x: Promise<any>) {
|
||||
>foo : (x: Promise<any>) => void
|
||||
@@ -41,6 +41,6 @@ function foo(x: Promise<any>) {
|
||||
foo(import("./0"));
|
||||
>foo(import("./0")) : void
|
||||
>foo : (x: Promise<any>) => void
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>"./0" : "./0"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//// [tests/cases/conformance/es2018/dynamicImport/importCallExpressionInSystem3.ts] ////
|
||||
//// [tests/cases/conformance/dynamicImport/importCallExpressionInSystem3.ts] ////
|
||||
|
||||
//// [0.ts]
|
||||
export class B {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
=== tests/cases/conformance/es2018/dynamicImport/0.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/0.ts ===
|
||||
export class B {
|
||||
>B : Symbol(B, Decl(0.ts, 0, 0))
|
||||
|
||||
@@ -6,7 +6,7 @@ export class B {
|
||||
>print : Symbol(B.print, Decl(0.ts, 0, 16))
|
||||
}
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/2.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/2.ts ===
|
||||
async function foo() {
|
||||
>foo : Symbol(foo, Decl(2.ts, 0, 0))
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
=== tests/cases/conformance/es2018/dynamicImport/0.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/0.ts ===
|
||||
export class B {
|
||||
>B : B
|
||||
|
||||
@@ -7,16 +7,16 @@ export class B {
|
||||
>"I am B" : "I am B"
|
||||
}
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/2.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/2.ts ===
|
||||
async function foo() {
|
||||
>foo : () => Promise<void>
|
||||
|
||||
class C extends (await import("./0")).B {}
|
||||
>C : C
|
||||
>(await import("./0")).B : B
|
||||
>(await import("./0")) : typeof "tests/cases/conformance/es2018/dynamicImport/0"
|
||||
>await import("./0") : typeof "tests/cases/conformance/es2018/dynamicImport/0"
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>(await import("./0")) : typeof "tests/cases/conformance/dynamicImport/0"
|
||||
>await import("./0") : typeof "tests/cases/conformance/dynamicImport/0"
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>"./0" : "./0"
|
||||
>B : typeof B
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//// [tests/cases/conformance/es2018/dynamicImport/importCallExpressionInSystem4.ts] ////
|
||||
//// [tests/cases/conformance/dynamicImport/importCallExpressionInSystem4.ts] ////
|
||||
|
||||
//// [0.ts]
|
||||
export class B {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
=== tests/cases/conformance/es2018/dynamicImport/0.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/0.ts ===
|
||||
export class B {
|
||||
>B : Symbol(B, Decl(0.ts, 0, 0))
|
||||
|
||||
@@ -9,11 +9,11 @@ export class B {
|
||||
export function foo() { return "foo" }
|
||||
>foo : Symbol(foo, Decl(0.ts, 2, 1))
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/1.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/1.ts ===
|
||||
export function backup() { return "backup"; }
|
||||
>backup : Symbol(backup, Decl(1.ts, 0, 0))
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/2.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/2.ts ===
|
||||
declare var console: any;
|
||||
>console : Symbol(console, Decl(2.ts, 0, 11))
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
=== tests/cases/conformance/es2018/dynamicImport/0.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/0.ts ===
|
||||
export class B {
|
||||
>B : B
|
||||
|
||||
@@ -11,12 +11,12 @@ export function foo() { return "foo" }
|
||||
>foo : () => string
|
||||
>"foo" : "foo"
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/1.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/1.ts ===
|
||||
export function backup() { return "backup"; }
|
||||
>backup : () => string
|
||||
>"backup" : "backup"
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/2.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/2.ts ===
|
||||
declare var console: any;
|
||||
>console : any
|
||||
|
||||
@@ -24,8 +24,8 @@ class C {
|
||||
>C : C
|
||||
|
||||
private myModule = import("./0");
|
||||
>myModule : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>myModule : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>"./0" : "./0"
|
||||
|
||||
method() {
|
||||
@@ -33,13 +33,13 @@ class C {
|
||||
|
||||
this.myModule.then(Zero => {
|
||||
>this.myModule.then(Zero => { console.log(Zero.foo()); }, async err => { console.log(err); let one = await import("./1"); console.log(one.backup()); }) : Promise<void>
|
||||
>this.myModule.then : <TResult1 = typeof "tests/cases/conformance/es2018/dynamicImport/0", TResult2 = never>(onfulfilled?: (value: typeof "tests/cases/conformance/es2018/dynamicImport/0") => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => Promise<TResult1 | TResult2>
|
||||
>this.myModule : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>this.myModule.then : <TResult1 = typeof "tests/cases/conformance/dynamicImport/0", TResult2 = never>(onfulfilled?: (value: typeof "tests/cases/conformance/dynamicImport/0") => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => Promise<TResult1 | TResult2>
|
||||
>this.myModule : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>this : this
|
||||
>myModule : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>then : <TResult1 = typeof "tests/cases/conformance/es2018/dynamicImport/0", TResult2 = never>(onfulfilled?: (value: typeof "tests/cases/conformance/es2018/dynamicImport/0") => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => Promise<TResult1 | TResult2>
|
||||
>Zero => { console.log(Zero.foo()); } : (Zero: typeof "tests/cases/conformance/es2018/dynamicImport/0") => void
|
||||
>Zero : typeof "tests/cases/conformance/es2018/dynamicImport/0"
|
||||
>myModule : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>then : <TResult1 = typeof "tests/cases/conformance/dynamicImport/0", TResult2 = never>(onfulfilled?: (value: typeof "tests/cases/conformance/dynamicImport/0") => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => Promise<TResult1 | TResult2>
|
||||
>Zero => { console.log(Zero.foo()); } : (Zero: typeof "tests/cases/conformance/dynamicImport/0") => void
|
||||
>Zero : typeof "tests/cases/conformance/dynamicImport/0"
|
||||
|
||||
console.log(Zero.foo());
|
||||
>console.log(Zero.foo()) : any
|
||||
@@ -48,7 +48,7 @@ class C {
|
||||
>log : any
|
||||
>Zero.foo() : string
|
||||
>Zero.foo : () => string
|
||||
>Zero : typeof "tests/cases/conformance/es2018/dynamicImport/0"
|
||||
>Zero : typeof "tests/cases/conformance/dynamicImport/0"
|
||||
>foo : () => string
|
||||
|
||||
}, async err => {
|
||||
@@ -63,9 +63,9 @@ class C {
|
||||
>err : any
|
||||
|
||||
let one = await import("./1");
|
||||
>one : typeof "tests/cases/conformance/es2018/dynamicImport/1"
|
||||
>await import("./1") : typeof "tests/cases/conformance/es2018/dynamicImport/1"
|
||||
>import("./1") : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/1">
|
||||
>one : typeof "tests/cases/conformance/dynamicImport/1"
|
||||
>await import("./1") : typeof "tests/cases/conformance/dynamicImport/1"
|
||||
>import("./1") : Promise<typeof "tests/cases/conformance/dynamicImport/1">
|
||||
>"./1" : "./1"
|
||||
|
||||
console.log(one.backup());
|
||||
@@ -75,7 +75,7 @@ class C {
|
||||
>log : any
|
||||
>one.backup() : string
|
||||
>one.backup : () => string
|
||||
>one : typeof "tests/cases/conformance/es2018/dynamicImport/1"
|
||||
>one : typeof "tests/cases/conformance/dynamicImport/1"
|
||||
>backup : () => string
|
||||
|
||||
});
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//// [tests/cases/conformance/es2018/dynamicImport/importCallExpressionInUMD1.ts] ////
|
||||
//// [tests/cases/conformance/dynamicImport/importCallExpressionInUMD1.ts] ////
|
||||
|
||||
//// [0.ts]
|
||||
export function foo() { return "foo"; }
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
=== tests/cases/conformance/es2018/dynamicImport/0.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/0.ts ===
|
||||
export function foo() { return "foo"; }
|
||||
>foo : Symbol(foo, Decl(0.ts, 0, 0))
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/1.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/1.ts ===
|
||||
import("./0");
|
||||
var p1 = import("./0");
|
||||
>p1 : Symbol(p1, Decl(1.ts, 1, 3))
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
=== tests/cases/conformance/es2018/dynamicImport/0.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/0.ts ===
|
||||
export function foo() { return "foo"; }
|
||||
>foo : () => string
|
||||
>"foo" : "foo"
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/1.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/1.ts ===
|
||||
import("./0");
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>"./0" : "./0"
|
||||
|
||||
var p1 = import("./0");
|
||||
>p1 : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>p1 : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>"./0" : "./0"
|
||||
|
||||
p1.then(zero => {
|
||||
>p1.then(zero => { return zero.foo();}) : Promise<string>
|
||||
>p1.then : <TResult1 = typeof "tests/cases/conformance/es2018/dynamicImport/0", TResult2 = never>(onfulfilled?: (value: typeof "tests/cases/conformance/es2018/dynamicImport/0") => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => Promise<TResult1 | TResult2>
|
||||
>p1 : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>then : <TResult1 = typeof "tests/cases/conformance/es2018/dynamicImport/0", TResult2 = never>(onfulfilled?: (value: typeof "tests/cases/conformance/es2018/dynamicImport/0") => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => Promise<TResult1 | TResult2>
|
||||
>zero => { return zero.foo();} : (zero: typeof "tests/cases/conformance/es2018/dynamicImport/0") => string
|
||||
>zero : typeof "tests/cases/conformance/es2018/dynamicImport/0"
|
||||
>p1.then : <TResult1 = typeof "tests/cases/conformance/dynamicImport/0", TResult2 = never>(onfulfilled?: (value: typeof "tests/cases/conformance/dynamicImport/0") => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => Promise<TResult1 | TResult2>
|
||||
>p1 : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>then : <TResult1 = typeof "tests/cases/conformance/dynamicImport/0", TResult2 = never>(onfulfilled?: (value: typeof "tests/cases/conformance/dynamicImport/0") => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => Promise<TResult1 | TResult2>
|
||||
>zero => { return zero.foo();} : (zero: typeof "tests/cases/conformance/dynamicImport/0") => string
|
||||
>zero : typeof "tests/cases/conformance/dynamicImport/0"
|
||||
|
||||
return zero.foo();
|
||||
>zero.foo() : string
|
||||
>zero.foo : () => string
|
||||
>zero : typeof "tests/cases/conformance/es2018/dynamicImport/0"
|
||||
>zero : typeof "tests/cases/conformance/dynamicImport/0"
|
||||
>foo : () => string
|
||||
|
||||
});
|
||||
@@ -33,7 +33,7 @@ function foo() {
|
||||
>foo : () => void
|
||||
|
||||
const p2 = import("./0");
|
||||
>p2 : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>p2 : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>"./0" : "./0"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//// [tests/cases/conformance/es2018/dynamicImport/importCallExpressionInUMD2.ts] ////
|
||||
//// [tests/cases/conformance/dynamicImport/importCallExpressionInUMD2.ts] ////
|
||||
|
||||
//// [0.ts]
|
||||
export class B {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
=== tests/cases/conformance/es2018/dynamicImport/0.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/0.ts ===
|
||||
export class B {
|
||||
>B : Symbol(B, Decl(0.ts, 0, 0))
|
||||
|
||||
@@ -6,7 +6,7 @@ export class B {
|
||||
>print : Symbol(B.print, Decl(0.ts, 0, 16))
|
||||
}
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/2.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/2.ts ===
|
||||
// We use Promise<any> for now as there is no way to specify shape of module object
|
||||
function foo(x: Promise<any>) {
|
||||
>foo : Symbol(foo, Decl(2.ts, 0, 0))
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
=== tests/cases/conformance/es2018/dynamicImport/0.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/0.ts ===
|
||||
export class B {
|
||||
>B : B
|
||||
|
||||
@@ -7,7 +7,7 @@ export class B {
|
||||
>"I am B" : "I am B"
|
||||
}
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/2.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/2.ts ===
|
||||
// We use Promise<any> for now as there is no way to specify shape of module object
|
||||
function foo(x: Promise<any>) {
|
||||
>foo : (x: Promise<any>) => void
|
||||
@@ -41,6 +41,6 @@ function foo(x: Promise<any>) {
|
||||
foo(import("./0"));
|
||||
>foo(import("./0")) : void
|
||||
>foo : (x: Promise<any>) => void
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>"./0" : "./0"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//// [tests/cases/conformance/es2018/dynamicImport/importCallExpressionInUMD3.ts] ////
|
||||
//// [tests/cases/conformance/dynamicImport/importCallExpressionInUMD3.ts] ////
|
||||
|
||||
//// [0.ts]
|
||||
export class B {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
=== tests/cases/conformance/es2018/dynamicImport/0.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/0.ts ===
|
||||
export class B {
|
||||
>B : Symbol(B, Decl(0.ts, 0, 0))
|
||||
|
||||
@@ -6,7 +6,7 @@ export class B {
|
||||
>print : Symbol(B.print, Decl(0.ts, 0, 16))
|
||||
}
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/2.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/2.ts ===
|
||||
async function foo() {
|
||||
>foo : Symbol(foo, Decl(2.ts, 0, 0))
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
=== tests/cases/conformance/es2018/dynamicImport/0.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/0.ts ===
|
||||
export class B {
|
||||
>B : B
|
||||
|
||||
@@ -7,16 +7,16 @@ export class B {
|
||||
>"I am B" : "I am B"
|
||||
}
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/2.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/2.ts ===
|
||||
async function foo() {
|
||||
>foo : () => Promise<void>
|
||||
|
||||
class C extends (await import("./0")).B {}
|
||||
>C : C
|
||||
>(await import("./0")).B : B
|
||||
>(await import("./0")) : typeof "tests/cases/conformance/es2018/dynamicImport/0"
|
||||
>await import("./0") : typeof "tests/cases/conformance/es2018/dynamicImport/0"
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>(await import("./0")) : typeof "tests/cases/conformance/dynamicImport/0"
|
||||
>await import("./0") : typeof "tests/cases/conformance/dynamicImport/0"
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>"./0" : "./0"
|
||||
>B : typeof B
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//// [tests/cases/conformance/es2018/dynamicImport/importCallExpressionInUMD4.ts] ////
|
||||
//// [tests/cases/conformance/dynamicImport/importCallExpressionInUMD4.ts] ////
|
||||
|
||||
//// [0.ts]
|
||||
export class B {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
=== tests/cases/conformance/es2018/dynamicImport/0.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/0.ts ===
|
||||
export class B {
|
||||
>B : Symbol(B, Decl(0.ts, 0, 0))
|
||||
|
||||
@@ -9,11 +9,11 @@ export class B {
|
||||
export function foo() { return "foo" }
|
||||
>foo : Symbol(foo, Decl(0.ts, 2, 1))
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/1.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/1.ts ===
|
||||
export function backup() { return "backup"; }
|
||||
>backup : Symbol(backup, Decl(1.ts, 0, 0))
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/2.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/2.ts ===
|
||||
declare var console: any;
|
||||
>console : Symbol(console, Decl(2.ts, 0, 11))
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
=== tests/cases/conformance/es2018/dynamicImport/0.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/0.ts ===
|
||||
export class B {
|
||||
>B : B
|
||||
|
||||
@@ -11,12 +11,12 @@ export function foo() { return "foo" }
|
||||
>foo : () => string
|
||||
>"foo" : "foo"
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/1.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/1.ts ===
|
||||
export function backup() { return "backup"; }
|
||||
>backup : () => string
|
||||
>"backup" : "backup"
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/2.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/2.ts ===
|
||||
declare var console: any;
|
||||
>console : any
|
||||
|
||||
@@ -24,8 +24,8 @@ class C {
|
||||
>C : C
|
||||
|
||||
private myModule = import("./0");
|
||||
>myModule : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>myModule : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>import("./0") : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>"./0" : "./0"
|
||||
|
||||
method() {
|
||||
@@ -33,13 +33,13 @@ class C {
|
||||
|
||||
this.myModule.then(Zero => {
|
||||
>this.myModule.then(Zero => { console.log(Zero.foo()); }, async err => { console.log(err); let one = await import("./1"); console.log(one.backup()); }) : Promise<void>
|
||||
>this.myModule.then : <TResult1 = typeof "tests/cases/conformance/es2018/dynamicImport/0", TResult2 = never>(onfulfilled?: (value: typeof "tests/cases/conformance/es2018/dynamicImport/0") => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => Promise<TResult1 | TResult2>
|
||||
>this.myModule : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>this.myModule.then : <TResult1 = typeof "tests/cases/conformance/dynamicImport/0", TResult2 = never>(onfulfilled?: (value: typeof "tests/cases/conformance/dynamicImport/0") => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => Promise<TResult1 | TResult2>
|
||||
>this.myModule : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>this : this
|
||||
>myModule : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
|
||||
>then : <TResult1 = typeof "tests/cases/conformance/es2018/dynamicImport/0", TResult2 = never>(onfulfilled?: (value: typeof "tests/cases/conformance/es2018/dynamicImport/0") => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => Promise<TResult1 | TResult2>
|
||||
>Zero => { console.log(Zero.foo()); } : (Zero: typeof "tests/cases/conformance/es2018/dynamicImport/0") => void
|
||||
>Zero : typeof "tests/cases/conformance/es2018/dynamicImport/0"
|
||||
>myModule : Promise<typeof "tests/cases/conformance/dynamicImport/0">
|
||||
>then : <TResult1 = typeof "tests/cases/conformance/dynamicImport/0", TResult2 = never>(onfulfilled?: (value: typeof "tests/cases/conformance/dynamicImport/0") => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => Promise<TResult1 | TResult2>
|
||||
>Zero => { console.log(Zero.foo()); } : (Zero: typeof "tests/cases/conformance/dynamicImport/0") => void
|
||||
>Zero : typeof "tests/cases/conformance/dynamicImport/0"
|
||||
|
||||
console.log(Zero.foo());
|
||||
>console.log(Zero.foo()) : any
|
||||
@@ -48,7 +48,7 @@ class C {
|
||||
>log : any
|
||||
>Zero.foo() : string
|
||||
>Zero.foo : () => string
|
||||
>Zero : typeof "tests/cases/conformance/es2018/dynamicImport/0"
|
||||
>Zero : typeof "tests/cases/conformance/dynamicImport/0"
|
||||
>foo : () => string
|
||||
|
||||
}, async err => {
|
||||
@@ -63,9 +63,9 @@ class C {
|
||||
>err : any
|
||||
|
||||
let one = await import("./1");
|
||||
>one : typeof "tests/cases/conformance/es2018/dynamicImport/1"
|
||||
>await import("./1") : typeof "tests/cases/conformance/es2018/dynamicImport/1"
|
||||
>import("./1") : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/1">
|
||||
>one : typeof "tests/cases/conformance/dynamicImport/1"
|
||||
>await import("./1") : typeof "tests/cases/conformance/dynamicImport/1"
|
||||
>import("./1") : Promise<typeof "tests/cases/conformance/dynamicImport/1">
|
||||
>"./1" : "./1"
|
||||
|
||||
console.log(one.backup());
|
||||
@@ -75,7 +75,7 @@ class C {
|
||||
>log : any
|
||||
>one.backup() : string
|
||||
>one.backup : () => string
|
||||
>one : typeof "tests/cases/conformance/es2018/dynamicImport/1"
|
||||
>one : typeof "tests/cases/conformance/dynamicImport/1"
|
||||
>backup : () => string
|
||||
|
||||
});
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//// [tests/cases/conformance/es2018/dynamicImport/importCallExpressionReturnPromiseOfAny.ts] ////
|
||||
//// [tests/cases/conformance/dynamicImport/importCallExpressionReturnPromiseOfAny.ts] ////
|
||||
|
||||
//// [defaultPath.ts]
|
||||
export class C {}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
=== tests/cases/conformance/es2018/dynamicImport/defaultPath.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/defaultPath.ts ===
|
||||
export class C {}
|
||||
>C : Symbol(C, Decl(defaultPath.ts, 0, 0))
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/1.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/1.ts ===
|
||||
import * as defaultModule from "./defaultPath";
|
||||
>defaultModule : Symbol(defaultModule, Decl(1.ts, 0, 6))
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
=== tests/cases/conformance/es2018/dynamicImport/defaultPath.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/defaultPath.ts ===
|
||||
export class C {}
|
||||
>C : C
|
||||
|
||||
=== tests/cases/conformance/es2018/dynamicImport/1.ts ===
|
||||
=== tests/cases/conformance/dynamicImport/1.ts ===
|
||||
import * as defaultModule from "./defaultPath";
|
||||
>defaultModule : typeof defaultModule
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
tests/cases/conformance/es2018/dynamicImport/importCallExpressionSpecifierNotStringTypeError.ts(5,8): error TS7036: Dynamic import's specifier must be of type 'string', but here has type 'boolean'.
|
||||
tests/cases/conformance/es2018/dynamicImport/importCallExpressionSpecifierNotStringTypeError.ts(6,17): error TS7036: Dynamic import's specifier must be of type 'string', but here has type 'boolean'.
|
||||
tests/cases/conformance/es2018/dynamicImport/importCallExpressionSpecifierNotStringTypeError.ts(7,19): error TS7036: Dynamic import's specifier must be of type 'string', but here has type 'boolean | "defaulPath"'.
|
||||
tests/cases/conformance/es2018/dynamicImport/importCallExpressionSpecifierNotStringTypeError.ts(12,17): error TS7036: Dynamic import's specifier must be of type 'string', but here has type 'string[]'.
|
||||
tests/cases/conformance/es2018/dynamicImport/importCallExpressionSpecifierNotStringTypeError.ts(13,17): error TS7036: Dynamic import's specifier must be of type 'string', but here has type '() => string'.
|
||||
tests/cases/conformance/dynamicImport/importCallExpressionSpecifierNotStringTypeError.ts(5,8): error TS7036: Dynamic import's specifier must be of type 'string', but here has type 'boolean'.
|
||||
tests/cases/conformance/dynamicImport/importCallExpressionSpecifierNotStringTypeError.ts(6,17): error TS7036: Dynamic import's specifier must be of type 'string', but here has type 'boolean'.
|
||||
tests/cases/conformance/dynamicImport/importCallExpressionSpecifierNotStringTypeError.ts(7,19): error TS7036: Dynamic import's specifier must be of type 'string', but here has type 'boolean | "defaulPath"'.
|
||||
tests/cases/conformance/dynamicImport/importCallExpressionSpecifierNotStringTypeError.ts(12,17): error TS7036: Dynamic import's specifier must be of type 'string', but here has type 'string[]'.
|
||||
tests/cases/conformance/dynamicImport/importCallExpressionSpecifierNotStringTypeError.ts(13,17): error TS7036: Dynamic import's specifier must be of type 'string', but here has type '() => string'.
|
||||
|
||||
|
||||
==== tests/cases/conformance/es2018/dynamicImport/importCallExpressionSpecifierNotStringTypeError.ts (5 errors) ====
|
||||
==== tests/cases/conformance/dynamicImport/importCallExpressionSpecifierNotStringTypeError.ts (5 errors) ====
|
||||
declare function getSpecifier(): boolean;
|
||||
declare var whatToLoad: boolean;
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
tests/cases/conformance/es2018/dynamicImport/1.ts(2,10): error TS1326: Dynamic import cannot have type arguments
|
||||
tests/cases/conformance/es2018/dynamicImport/1.ts(3,10): error TS1326: Dynamic import cannot have type arguments
|
||||
tests/cases/conformance/dynamicImport/1.ts(2,10): error TS1326: Dynamic import cannot have type arguments
|
||||
tests/cases/conformance/dynamicImport/1.ts(3,10): error TS1326: Dynamic import cannot have type arguments
|
||||
|
||||
|
||||
==== tests/cases/conformance/es2018/dynamicImport/0.ts (0 errors) ====
|
||||
==== tests/cases/conformance/dynamicImport/0.ts (0 errors) ====
|
||||
export function foo() { return "foo"; }
|
||||
|
||||
==== tests/cases/conformance/es2018/dynamicImport/1.ts (2 errors) ====
|
||||
==== tests/cases/conformance/dynamicImport/1.ts (2 errors) ====
|
||||
"use strict"
|
||||
var p1 = import<Promise<any>>("./0"); // error
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//// [tests/cases/conformance/es2018/dynamicImport/importCallExpressionWithTypeArgument.ts] ////
|
||||
//// [tests/cases/conformance/dynamicImport/importCallExpressionWithTypeArgument.ts] ////
|
||||
|
||||
//// [0.ts]
|
||||
export function foo() { return "foo"; }
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
error TS6046: Argument for '--module' option must be: 'none', 'commonjs', 'amd', 'system', 'umd', 'es6', 'es2015', 'es2018'.
|
||||
error TS6046: Argument for '--module' option must be: 'none', 'commonjs', 'amd', 'system', 'umd', 'es6', 'es2015', 'esnext'.
|
||||
|
||||
|
||||
!!! error TS6046: Argument for '--module' option must be: 'none', 'commonjs', 'amd', 'system', 'umd', 'es6', 'es2015', 'es2018'.
|
||||
!!! error TS6046: Argument for '--module' option must be: 'none', 'commonjs', 'amd', 'system', 'umd', 'es6', 'es2015', 'esnext'.
|
||||
==== file.ts (0 errors) ====
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
error TS6046: Argument for '--module' option must be: 'none', 'commonjs', 'amd', 'system', 'umd', 'es6', 'es2015', 'es2018'.
|
||||
error TS6046: Argument for '--module' option must be: 'none', 'commonjs', 'amd', 'system', 'umd', 'es6', 'es2015', 'esnext'.
|
||||
|
||||
|
||||
!!! error TS6046: Argument for '--module' option must be: 'none', 'commonjs', 'amd', 'system', 'umd', 'es6', 'es2015', 'es2018'.
|
||||
!!! error TS6046: Argument for '--module' option must be: 'none', 'commonjs', 'amd', 'system', 'umd', 'es6', 'es2015', 'esnext'.
|
||||
==== file.ts (0 errors) ====
|
||||
|
||||
Reference in New Issue
Block a user