DanielXMoore / Civet

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

Scientific numeric literals take priority over access #1579

Closed edemaine closed 2 weeks ago

edemaine commented 2 weeks ago

Fix the equivalent of https://github.com/jashkenas/coffeescript/issues/5469 by giving priority to 1.e1 as a number, not an access ((1).e1), as suggested by @STRd6.

Improves JavaScript compatibility.

Technically this is a breaking change, but it's also reasonably a bug fix.