DanielXMoore / Civet

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

Regression in 0.7.11: No more implicit return in synchronous function that creates a Promise<void> #1277

Closed bbrk24 closed 5 months ago

bbrk24 commented 5 months ago

Minimal reproducer:

f := :Promise<void> =>
  Promise.resolve()

This returned the Promise object in 0.7.10, but does not in 0.7.11.

edemaine commented 5 months ago

Thanks for catching this!