Skip to content

[Textmate] readonly getter and setter in struct #314

@sharpchen

Description

@sharpchen

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions