Files
tsgo/testdata/tests/cases/compiler/emitOutputPathWithSourceEqualToRootDir.ts
65535b2038 Prevent crash when computing emit output paths (#4900)
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: DanielRosenwasser <[email protected]>
Co-authored-by: weswigham <[email protected]>
2026-08-19 20:46:00 +00:00

9 lines
311 B
TypeScript

// This intentionally file-valued rootDir makes the source path equal to the common source directory.
// The trailing separator added to that directory must not be used to slice the shorter source path.
// @currentDirectory: /a
// @rootDir: /a/k.ts
// @outDir: /a/out
// @filename: /a/k.ts
export const x = 1;