Skip to content

"Make field readonly" introduces error on assignment #26262

@Neme12

Description

@Neme12
class C
{
    int i;

    void M()
    {
        (i) = 1;
    }
}

Add readonly modifier is offer on 'i' and invoking it introduces a compiler error on the assignment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-IDEBughelp wantedThe issue is "up for grabs" - add a comment if you are interested in working on it

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions