--- /dev/null
+// CS0843: An automatically implemented property `S.Short' must be fully assigned before control leaves the constructor. Consider calling the default struct contructor from a constructor initializer
+// Line: 8
+
+using System;
+
+struct S
+{
+ public S (int value)
+ {
+ }
+
+ public short Short { get; set; }
+}
+++ /dev/null
-// CS0843: An automatically implemented property `S.Short' must be fully assigned before control leaves the constructor. Consider calling default contructor
-// Line: 8
-
-using System;
-
-struct S
-{
- public S (int value)
- {
- }
-
- public short Short { get; set; }
-}
if (!branching.IsFieldAssigned (vi, field.Name)) {
if (field.MemberDefinition is Property.BackingField) {
ec.Report.Error (843, loc,
- "An automatically implemented property `{0}' must be fully assigned before control leaves the constructor. Consider calling default contructor",
+ "An automatically implemented property `{0}' must be fully assigned before control leaves the constructor. Consider calling the default struct contructor from a constructor initializer",
field.GetSignatureForError ());
} else {
ec.Report.Error (171, loc,