Closed
Description
Bug Report
🔎 Search Terms
ts2367 widen loop
🕗 Version & Regression Information
- This is a crash
- This changed between versions ______ and _______
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about _________
- I was unable to test this on prior versions because _______
⏯ Playground Link
💻 Code
Edit: shorter version by gabritto
let code: 0 | 1 = 0
while (true) {
code = code === 1 ? 0 : 1
}
🙁 Actual behavior
Error
🙂 Expected behavior
Since code
could be changed in previous iterations of the loop, the condition is not always false, so there shouldn't be any error.