mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
11 lines
453 B
Plaintext
11 lines
453 B
Plaintext
//// [tests/cases/conformance/externalModules/moduleResolutionWithoutExtension8.ts] ////
|
|
|
|
=== /src/bar.cts ===
|
|
// Extensionless relative path dynamic import in a cjs module
|
|
import("./foo").then(x => x); // should error, ask for extension
|
|
>import("./foo").then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --))
|
|
>then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --))
|
|
>x : Symbol(x, Decl(bar.cts, 1, 21))
|
|
>x : Symbol(x, Decl(bar.cts, 1, 21))
|
|
|