Files
tsgo/testdata/baselines/reference/compiler/objectNameCollisionCommonJS(module=commonjs).errors.txt
7ce364c445 Report CommonJS top-level Object value collisions in checker (#3870)
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: RyanCavanaugh <[email protected]>
2026-05-15 21:59:11 +00:00

9 lines
384 B
Plaintext

objectNameCollisionCommonJS.ts(1,5): error TS2441: Duplicate identifier 'Object'. Compiler reserves name 'Object' in top level scope of a module.
==== objectNameCollisionCommonJS.ts (1 errors) ====
let Object = 0;
~~~~~~
!!! error TS2441: Duplicate identifier 'Object'. Compiler reserves name 'Object' in top level scope of a module.
export const x = 1;