|
1 |
| -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">'. |
2 |
| - Type 'typeof "tests/cases/conformance/es2018/dynamicImport/defaultPath"' is not assignable to type 'typeof "tests/cases/conformance/es2018/dynamicImport/anotherModule"'. |
3 |
| - Property 'D' is missing in type 'typeof "tests/cases/conformance/es2018/dynamicImport/defaultPath"'. |
4 |
| -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">'. |
5 |
| - Type 'typeof "tests/cases/conformance/es2018/dynamicImport/defaultPath"' is not comparable to type 'typeof "tests/cases/conformance/es2018/dynamicImport/anotherModule"'. |
6 |
| - Property 'D' is missing in type 'typeof "tests/cases/conformance/es2018/dynamicImport/defaultPath"'. |
| 1 | +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">'. |
| 2 | + Type 'typeof "tests/cases/conformance/dynamicImport/defaultPath"' is not assignable to type 'typeof "tests/cases/conformance/dynamicImport/anotherModule"'. |
| 3 | + Property 'D' is missing in type 'typeof "tests/cases/conformance/dynamicImport/defaultPath"'. |
| 4 | +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">'. |
| 5 | + Type 'typeof "tests/cases/conformance/dynamicImport/defaultPath"' is not comparable to type 'typeof "tests/cases/conformance/dynamicImport/anotherModule"'. |
| 6 | + Property 'D' is missing in type 'typeof "tests/cases/conformance/dynamicImport/defaultPath"'. |
7 | 7 |
|
8 | 8 |
|
9 |
| -==== tests/cases/conformance/es2018/dynamicImport/anotherModule.ts (0 errors) ==== |
| 9 | +==== tests/cases/conformance/dynamicImport/anotherModule.ts (0 errors) ==== |
10 | 10 | export class D{}
|
11 | 11 |
|
12 |
| -==== tests/cases/conformance/es2018/dynamicImport/defaultPath.ts (0 errors) ==== |
| 12 | +==== tests/cases/conformance/dynamicImport/defaultPath.ts (0 errors) ==== |
13 | 13 | export class C {}
|
14 | 14 |
|
15 |
| -==== tests/cases/conformance/es2018/dynamicImport/1.ts (2 errors) ==== |
| 15 | +==== tests/cases/conformance/dynamicImport/1.ts (2 errors) ==== |
16 | 16 | import * as defaultModule from "./defaultPath";
|
17 | 17 | import * as anotherModule from "./anotherModule";
|
18 | 18 |
|
19 | 19 | let p1: Promise<typeof anotherModule> = import("./defaultPath");
|
20 | 20 | ~~
|
21 |
| -!!! error TS2322: Type 'Promise<typeof "tests/cases/conformance/es2018/dynamicImport/defaultPath">' is not assignable to type 'Promise<typeof "tests/cases/conformance/es2018/dynamicImport/anotherModule">'. |
22 |
| -!!! error TS2322: Type 'typeof "tests/cases/conformance/es2018/dynamicImport/defaultPath"' is not assignable to type 'typeof "tests/cases/conformance/es2018/dynamicImport/anotherModule"'. |
23 |
| -!!! error TS2322: Property 'D' is missing in type 'typeof "tests/cases/conformance/es2018/dynamicImport/defaultPath"'. |
| 21 | +!!! error TS2322: Type 'Promise<typeof "tests/cases/conformance/dynamicImport/defaultPath">' is not assignable to type 'Promise<typeof "tests/cases/conformance/dynamicImport/anotherModule">'. |
| 22 | +!!! error TS2322: Type 'typeof "tests/cases/conformance/dynamicImport/defaultPath"' is not assignable to type 'typeof "tests/cases/conformance/dynamicImport/anotherModule"'. |
| 23 | +!!! error TS2322: Property 'D' is missing in type 'typeof "tests/cases/conformance/dynamicImport/defaultPath"'. |
24 | 24 | let p2 = import("./defaultPath") as Promise<typeof anotherModule>;
|
25 | 25 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
26 |
| -!!! error TS2352: Type 'Promise<typeof "tests/cases/conformance/es2018/dynamicImport/defaultPath">' cannot be converted to type 'Promise<typeof "tests/cases/conformance/es2018/dynamicImport/anotherModule">'. |
27 |
| -!!! error TS2352: Type 'typeof "tests/cases/conformance/es2018/dynamicImport/defaultPath"' is not comparable to type 'typeof "tests/cases/conformance/es2018/dynamicImport/anotherModule"'. |
28 |
| -!!! error TS2352: Property 'D' is missing in type 'typeof "tests/cases/conformance/es2018/dynamicImport/defaultPath"'. |
| 26 | +!!! error TS2352: Type 'Promise<typeof "tests/cases/conformance/dynamicImport/defaultPath">' cannot be converted to type 'Promise<typeof "tests/cases/conformance/dynamicImport/anotherModule">'. |
| 27 | +!!! error TS2352: Type 'typeof "tests/cases/conformance/dynamicImport/defaultPath"' is not comparable to type 'typeof "tests/cases/conformance/dynamicImport/anotherModule"'. |
| 28 | +!!! error TS2352: Property 'D' is missing in type 'typeof "tests/cases/conformance/dynamicImport/defaultPath"'. |
29 | 29 | let p3: Promise<any> = import("./defaultPath");
|
30 | 30 |
|
0 commit comments