Microsoft/TypeScript
GitHub ã§èŠãParse error when using `in` nested in a `for` initializer
Open
#59,236 opened on 2024幎7æ11æ¥
BugDomain: ParserHelp Wanted
Repository metrics
- Stars
- Â (48,455 stars)
- PR merge metrics
-  (å¹³åããŒãž 6d 17h) (30d ã§ 9 merged PRs)
説æ
ð 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