[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / errors / cs0200-3.cs
1 // CS0200: Property or indexer `A.Counter' cannot be assigned to (it is read-only)
2 // Line: 9
3
4 class Program
5 {
6         static void Main()
7         {
8                 A a = new A();
9                 a.Counter++;
10         }
11 }
12
13 class A {
14         private int? _counter;
15         public int? Counter {
16                 get { return _counter; }
17         }
18 }