[Mono-bugs] [Bug 78820][Nor] Changed - compiler no longer complains about struct types that are used unitialized
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed Sep 20 09:56:58 EDT 2006
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by rharinath at novell.com.
http://bugzilla.ximian.com/show_bug.cgi?id=78820
--- shadow/78820 2006-07-11 13:46:55.000000000 -0400
+++ shadow/78820.tmp.31900 2006-09-20 09:56:58.000000000 -0400
@@ -1,14 +1,14 @@
Bug#: 78820
Product: Mono: Compilers
Version: unspecified
-OS:
+OS: unknown
OS Details:
Status: NEW
Resolution:
-Severity:
+Severity: Unknown
Priority: Normal
Component: C#
AssignedTo: rharinath at novell.com
ReportedBy: toshok at ximian.com
QAContact: mono-bugs at ximian.com
TargetMilestone: ---
@@ -30,6 +30,36 @@
foo.X = 5;
}
}
=======
+
+------- Additional Comments From rharinath at novell.com 2006-09-20 09:56 -------
+Hmm, that's strange. CSC has no problem with:
+
+------------------------------------------------------------
+struct Rectangle { public int X; }
+public class Foo {
+ public static void Main (string[] args)
+ {
+ Rectangle foo;
+
+ foo.X = 5;
+ }
+}
+------------------------------------------------------------
+
+nor with:
+
+------------------------------------------------------------
+struct Rectangle { public int X { set {} } }
+//...
+------------------------------------------------------------
+
+but does complain about:
+
+------------------------------------------------------------
+struct Rectangle { int x; public int X { set { } } }
+//...
+------------------------------------------------------------
+
More information about the mono-bugs
mailing list