mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
15 lines
394 B
Plaintext
15 lines
394 B
Plaintext
//// [tests/cases/conformance/externalModules/moduleResolutionWithoutExtension4.ts] ////
|
|
|
|
=== /src/foo.tsx ===
|
|
export function foo() {
|
|
>foo : Symbol(foo, Decl(foo.tsx, 0, 0))
|
|
|
|
return "";
|
|
}
|
|
|
|
=== /src/bar.mts ===
|
|
// Extensionless relative path ES import in an ES module
|
|
import { foo } from "./foo"; // should error, suggest adding ".js"
|
|
>foo : Symbol(foo, Decl(bar.mts, 1, 8))
|
|
|