DanielXMoore / Civet

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

Numeric object keys in pattern matching #1608

Closed STRd6 closed 6 days ago

STRd6 commented 6 days ago

Fix #1606

edemaine commented 6 days ago

Oops, I'm wrong: PropertyNameComputedPropertyName already does this. So the only question is whether we already support ComputedPropertyName. Probably we do!

STRd6 commented 6 days ago

Good catch on ComputedPropertyName and negative numbers. I added another test and support for that.