Wrong type hint for a module value containing a lambda #14378
Labels
Area-LangService-Hints
F# hints inspired by C# inline hints
Bug
good first issue
Impact-Low
(Internal MS Team use only) Describes an issue with limited impact on existing code.
Milestone
Repro steps
let func = fun () -> 3
Expected behavior
Type hint containing
: (unit -> int)
(with or without the parentheses).Actual behavior
Related information
The issue originates in this function
retTy
is theint
type, while the solution oftau
isunit -> 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.The text was updated successfully, but these errors were encountered: