Skip to content

Broken behavior of the RemoveUnusedBinding code fix #15411

@psfinaki

Description

@psfinaki

Code:

type DU =
    | X
    | Y

    member t.A = 42

The respective code fix does something weird:

bug.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-LangService-CodeFixesCode fixes associated with diagnosticsBugImpact-Medium(Internal MS Team use only) Describes an issue with moderate impact on existing code.good first issue

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions