Skip to content

ReplaceWithSuggestion code fix doesn't fix FS1129 #15887

@psfinaki

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

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

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions