Microsoft/TypeScript
Vedi su GitHubParse error when using `in` nested in a `for` initializer
Open
#59.236 aperta il 11 lug 2024
BugDomain: ParserHelp Wanted
Metriche repository
- Star
- (48.455 star)
- Metriche merge PR
- (Merge medio 6g 17h) (9 PR mergiate in 30 g)
Descrizione
🔎 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