Skip to content

Record names are not suggested in the pattern matching #15889

@psfinaki

Description

@psfinaki

This code:

type SomeType = { TheField : string }

let f x =
    match x with
    | { TheField = "A" } -> true
    | {  = "B" } -> true
    | _ -> false

... doesn't suggest TheField for the pattern matching rule at any time.

bug2.mp4

I am quite sure this is a bug and a regression. This is implied by this bug and by common sense.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-LangService-AutoCompleteautocomplete/intellisenseBugImpact-Low(Internal MS Team use only) Describes an issue with limited impact on existing code.

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions