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
{{ message }}
Repository navigation
awaited operator is not added to the return types of async functions #37592
Expected behavior:
Return type of f is invalid because the correct type is Promise<awaited T>.
Return types of g are Promise<awaited T> and Promise<number>. Actual behavior:
Return type of f is valid although the correct type is Promise<awaited T>.
Return types of g are Promise<T> and Promise<Promise<number>>.
Activity
falsandtru commentedon Mar 25, 2020
Ron Buckton (@rbuckton) Andrew Casey (@amcasey) Ryan Cavanaugh (@RyanCavanaugh) Nathan Shively-Sanders (@sandersn) Since this bug would easily make wrong errors in user tests, this should be fixed soon.