Microsoft/TypeScript
Parse error when using `in` nested in a `for` initializer
Offen
#59.236 geöffnet am 11.07.2024
BugDomain: ParserHelp Wanted
Repository-Metriken
- Stars
- (108.860 Sterne)
- PR-Merge-Metriken
- (Durchschn. Merge 6T 17h) (9 gemergte PRs in 30 T)
Beschreibung
🔎 Search Terms
in for in init syntax error
🕗 Version & Regression Information
- This is the behavior in every version I tried
⏯ Playground Link
https://www.typescriptlang.org/play/?ts=5.5.3#code/GYewTgBAFAbghpOEC8EDaAjCBLAdhAYwF0BuEgShKA
💻 Code
for (var a = [b in c];;);
🙁 Actual behavior
It says "',' expected." at the in
🙂 Expected behavior
It should parse it properly
Additional information about the issue
No response