Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
SWC compiler allows const variable re-assignment - Theo's Typesafe Cult
TTC
Theo's Typesafe Cult
•
4y ago
•
1 reply
Samip Poudel
SWC compiler allows const variable re-assignment
I was trying out the SWC playground and I am getting no errors when I reassign a
const
const
variable
.
PS
: when the function is not arrow function or when the code is out of that function
, it throws the appropriate error
.
Theo's Typesafe Cult
Join
26,564
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Rendering function vs variable assignment
TTC
Theo's Typesafe Cult / questions
3y ago
Take-home assignment
TTC
Theo's Typesafe Cult / questions
3y ago
eslint/no-unsafe-assignment
TTC
Theo's Typesafe Cult / questions
3y ago
destructuring assignment typescript error
TTC
Theo's Typesafe Cult / questions
3y ago