[interp] Add more Math intrinsics (#19174)
[mono-project.git] / mcs / errors / cs0200-3.cs
blob0af8e83ff7ed6ed503a788a2a76bdca5182872e6
1 // CS0200: Property or indexer `A.Counter' cannot be assigned to (it is read-only)
2 // Line: 9
4 class Program
6 static void Main()
8 A a = new A();
9 a.Counter++;
13 class A {
14 private int? _counter;
15 public int? Counter {
16 get { return _counter; }