csharp-tmLanguage
csharp-tmLanguage copied to clipboard
[Textmate] `readonly` getter and setter in struct
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++;
}
}
Please provide a code example and (optionally) a screenshot demonstrating the problem.