csharp-tmLanguage icon indicating copy to clipboard operation
csharp-tmLanguage copied to clipboard

[Textmate] `readonly` getter and setter in struct

Open sharpchen opened this issue 1 year ago • 0 comments

Details

What editor are you seeing the problem in? (e.g. Atom, Visual Studio Code, etc.) vscode What version of the editor are you using? 1.85.1 What color theme are you using? dark plus

Repro

struct M
{
    private int counter;
    public int Counter
    {
        get => counter;
        readonly set { }
    }
    public int this[int i]
    {
        readonly get => counter;
        set { }
    }
    public readonly void Method()
    {
        counter++;
    }
}

image

Please provide a code example and (optionally) a screenshot demonstrating the problem.

sharpchen avatar Dec 30 '23 14:12 sharpchen