Skip to content

Incorrect handling of ReturnStatement check in an async function #45924

Description

@rbuckton

From lensapp/lens:

Originally posted by Ron Buckton (@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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions