@@ -6,6 +6,8 @@ main.ts(6,22): error TS2307: Cannot find module './foo.ts' or its corresponding
66main.ts(8,15): error TS2307: Cannot find module './foo.ts' or its corresponding type declarations.
77main.ts(10,8): error TS2307: Cannot find module './foo.ts' or its corresponding type declarations.
88main.ts(11,8): error TS2307: Cannot find module './foo.ts' or its corresponding type declarations.
9+ main.ts(13,18): error TS2307: Cannot find module './foo.ts' or its corresponding type declarations.
10+ main.ts(14,8): error TS2307: Cannot find module './foo.ts' or its corresponding type declarations.
911no.ts(1,16): error TS2307: Cannot find module './foo.ts/foo.js' or its corresponding type declarations.
1012no.ts(2,16): error TS2307: Cannot find module 'foo.ts' or its corresponding type declarations.
1113no.ts(3,16): error TS2307: Cannot find module 'pkg/foo.ts' or its corresponding type declarations.
@@ -21,7 +23,7 @@ no.ts(11,8): error TS2307: Cannot find module 'node:path' or its corresponding t
2123==== globals.d.ts (0 errors) ====
2224 declare function require(module: string): any;
2325
24- ==== main.ts (8 errors) ====
26+ ==== main.ts (10 errors) ====
2527 // Rewrite
2628 import {} from "./foo.ts";
2729 ~~~~~~~~~~
@@ -45,6 +47,13 @@ no.ts(11,8): error TS2307: Cannot find module 'node:path' or its corresponding t
4547 //Shim
4648 import("./foo.ts");
4749 ~~~~~~~~~~
50+ !!! error TS2307: Cannot find module './foo.ts' or its corresponding type declarations.
51+ import("./foo.ts").then(() => {});
52+ ~~~~~~~~~~
53+ !!! error TS2307: Cannot find module './foo.ts' or its corresponding type declarations.
54+ function acceptAny(arg: any) {}
55+ acceptAny(import("./foo.ts"));
56+ ~~~~~~~~~~
4857!!! error TS2307: Cannot find module './foo.ts' or its corresponding type declarations.
4958 import("./foo.ts", { with: { attr: "value" } });
5059 ~~~~~~~~~~
0 commit comments