Files
tsgo/testdata/baselines/reference/submodule/conformance/moduleResolutionWithoutExtension6.symbols
2025-02-26 14:53:49 -08:00

10 lines
411 B
Plaintext

//// [tests/cases/conformance/externalModules/moduleResolutionWithoutExtension6.ts] ////
=== /src/bar.cts ===
// Extensionless relative path import statement in a cjs module
// Import statements are not allowed in cjs files,
// but other errors should not assume that they are allowed
import { foo } from "./foo"; // should error, should not ask for extension
>foo : Symbol(foo, Decl(bar.cts, 3, 8))