Skip to content

"Make field readonly" introduces error with deconstruction assignment #26264

@Neme12

Description

@Neme12
class C
{
    int i;
    int j;

    void M()
    {
        (i, j) = (1, 2);
    }
}

Add readonly modifier should not be offered here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-IDEBugResolution-FixedThe bug has been fixed and/or the requested behavior has been implemented

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions