dotnet / fsharp

The F# compiler, F# core library, F# language service, and F# tooling integration for Visual Studio
https://dotnet.microsoft.com/languages/fsharp
MIT License
3.88k stars 783 forks source link

Extra code completion items in short lambda #17162

Open auduchinok opened 4 months ago

auduchinok commented 4 months ago
type R =
    { Field: int }
    member this.P = 1

let i = 1
let r: R = Unchecked.defaultof<_>

[r] |> List.map _.

There're unexpected i and r items in the code completion popup:

Screenshot 2024-05-16 at 18 22 09