mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
11 lines
456 B
Plaintext
11 lines
456 B
Plaintext
//// [tests/cases/conformance/externalModules/moduleResolutionWithoutExtension5.ts] ////
|
|
|
|
=== /src/buzz.mts ===
|
|
// Extensionless relative path dynamic import in an ES 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(buzz.mts, 1, 21))
|
|
>x : Symbol(x, Decl(buzz.mts, 1, 21))
|
|
|