[mcs] Allow properties and indexers of by-ref values to be set without setter
[mono.git] / mcs / errors / cs0649-3.cs
1 // CS0649: Field `X.e' is never assigned to, and will always have its default value `0'
2 // Line: 10
3 // Compiler options: -warnaserror -warn:4
4
5 using System;
6 class X {
7         E e;
8
9         E Value {
10                 get {
11                         return e;
12                 }
13         }
14 }
15
16 enum E
17 {
18         Foo
19 }