DanielXMoore / Civet

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

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

Closed bbrk24 closed 3 weeks ago

bbrk24 commented 3 weeks 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 3 weeks ago

Thanks for catching this!