You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a real-world example where I have a function with return value Promise<void>, yet I want implicit return, because I construct the Promise explicitly via new Promise. This code breaks with modern Civet which turns off implicit returns when the return value is Promise<void>.
I think a Promise<void> return value should turn off implicit returns only for functions that are async, either explicitly or implicitly because of await. This function isn't async and that's causing a problem.
The text was updated successfully, but these errors were encountered:
I have a real-world example where I have a function with return value
Promise<void>
, yet I want implicit return, because I construct thePromise
explicitly vianew Promise
. This code breaks with modern Civet which turns off implicit returns when the return value isPromise<void>
.I think a
Promise<void>
return value should turn off implicit returns only for functions that areasync
, either explicitly or implicitly because ofawait
. This function isn'tasync
and that's causing a problem.The text was updated successfully, but these errors were encountered: