DanielXMoore / Civet

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

Fix empty then clause in if expressions #1269

Closed edemaine closed 5 months ago

edemaine commented 5 months 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.