svn path=/trunk/mcs/; revision=70353
--- /dev/null
+// CS0649: Field `X.y' is never assigned to, and will always have its default value `null'
+// Line: 10
+// Compiler options: -warnaserror -warn:4
+
+class X {
+ Y y;
+
+ Y Value {
+ get {
+ return y;
+ }
+ }
+}
+
+struct Y
+{
+}
--- /dev/null
+// CS0649: Field `X.e' is never assigned to, and will always have its default value `0'
+// Line: 10
+// Compiler options: -warnaserror -warn:4
+
+using System;
+class X {
+ E e;
+
+ E Value {
+ get {
+ return e;
+ }
+ }
+}
+
+enum E
+{
+ Foo
+}