Skip to content

Incorrect handling of ReturnStatement check in an async function #45924

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
rbuckton opened this issue Sep 17, 2021 · 0 comments · Fixed by #45925
Closed

Incorrect handling of ReturnStatement check in an async function #45924

rbuckton opened this issue Sep 17, 2021 · 0 comments · Fixed by #45925

Comments

@rbuckton
Copy link
Member

From lensapp/lens:

Originally posted by @rbuckton in #45846 (comment)

We're checking return type assignability and end up with a T from unwrapping the return type annotation but an Awaited<T> from checking the ReturnStatement's expression.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant