Skip to content

Wrong type hint for a module value containing a lambda #14378

@kerams

Description

@kerams

Repro steps

let func = fun () -> 3

Expected behavior

Type hint containing : (unit -> int) (with or without the parentheses).

Actual behavior

TiwQboH0iO

Related information

  • VS integration built from the current main branch

The issue originates in this function

devenv_PFgtHiFxsT

retTy is the int type, while the solution of tau is unit -> int, which is what we're looking for in the hint. I don't want to touch this, because I have no idea what ramifications it could have across the compiler.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-LangService-HintsF# hints inspired by C# inline hintsBugImpact-Low(Internal MS Team use only) Describes an issue with limited impact on existing code.good first issue

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions