-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
Milestone
Description
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
let Something = 5
interface Something {}Logs
Error: Identifier 'Something' has already been declared (svelte)System Info
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.1566Severity
annoyance
ceifa and imambungo