Skip to content

ReplaceWithSuggestion code fix doesn't fix FS1129 #15887

Description

@psfinaki

This code:

type SomeType = { TheField : string }

let test = { TheField = "X" }

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

...triggers the code fix for the first case but doesn't trigger it for the second one.

bug1.mp4

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-LangService-CodeFixesCode fixes associated with diagnosticsBugImpact-Low(Internal MS Team use only) Describes an issue with limited impact on existing code.

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions