DanielXMoore / Civet

A TypeScript superset that favors more types and less typing
https://civet.dev
MIT License
1.56k stars 33 forks source link

Range for loop doesn't support complex left-hand sides #1587

Closed edemaine closed 1 week ago

edemaine commented 2 weeks ago

Input:

for chosen[i] of [0...10]

Error:

Assertion failed [Internal error: Coffee-style for loop must be an assignment expression]: MemberExpression !== AssignmentExpression