DanielXMoore / Civet

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

Fix empty then clause in if expressions #1269

Closed edemaine closed 1 month ago

edemaine commented 1 month ago

Empty then blocks in if expressions currently produce invalid JS. Example:

x = (if y
else 5)
↓↓↓
x = ((y?
: 5))

This PR adds a missing void 0.