Skip to content

Incorrect type shown for first argument of async function #1042

Open
@cknitt

Description

@cknitt

For this function

let f = async (a, b) => a + b

the following types are shown on hover:

  1. Hover over f: (int, int) => promise<int> (correct)
  2. Hover over a: int => promise<int> (incorrect)
  3. Hover over b: int (correct)

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