Open rChaoz opened 4 months ago
In TypeScript, it is common to have variables and types with the same name. Svelte 5 native TypeScript support prohibits this, breaking existing TypeScript code.
let Something = 5 interface Something {}
REPL
Error: Identifier 'Something' has already been declared (svelte)
System: OS: Windows 10 10.0.19045 CPU: (20) x64 12th Gen Intel(R) Core(TM) i7-12700KF Memory: 13.10 GB / 31.86 GB Binaries: Node: 20.8.0 - C:\Program Files\nodejs\node.EXE Yarn: 4.1.1 - C:\Program Files\nodejs\yarn.CMD npm: 10.2.1 - C:\Program Files\nodejs\npm.CMD Browsers: Edge: Spartan (44.19041.1266.0) Internet Explorer: 11.0.19041.1566
annoyance
Probably related to #11412
This is an issue in acorn-typescript: https://github.com/TyrealHu/acorn-typescript/issues/50
acorn-typescript
Describe the bug
In TypeScript, it is common to have variables and types with the same name. Svelte 5 native TypeScript support prohibits this, breaking existing TypeScript code.
Reproduction
REPL
Logs
System Info
Severity
annoyance