DanielXMoore / Civet

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

Negative index access fails on its own line #1155

Closed edemaine closed 2 months ago

edemaine commented 2 months ago

This code crashes the parser with error message Invalid parse tree for negative index access:

x
.-1

By contrast, x.-1 works fine.