[Mono-bugs] [Bug 60587][Cri] Changed - [PATCH] mcs exception seen as compilation success
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Tue, 7 Sep 2004 03:58:39 -0400 (EDT)
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 dge@softec.st.
http://bugzilla.ximian.com/show_bug.cgi?id=60587
--- shadow/60587 2004-09-06 19:56:52.000000000 -0400
+++ shadow/60587.tmp.19717 2004-09-07 03:58:39.000000000 -0400
@@ -83,6 +83,20 @@
says nothing about it. I just removed all that code.
------- Additional Comments From ravi@ximian.com 2004-09-06 19:56 -------
Can we have somebody verify csc's behaviour for this ? The patch is
definitely correct (I checked the spec too) but I just thought we
should make sure.
+
+------- Additional Comments From dge@softec.st 2004-09-07 03:58 -------
+Sorry, I should have mention that earlier, I have check against CSC
+and it complains with:
+
+error CS0133: The expression being assigned to 'A.cA' must be constant
+
+So the patch is correct and please apply it !
+
+That said, the C# spec is a little bit lazy allowing only non-constant
+array to be initialized with a "constant" value. And remember that my
+initial complain was against MD which have hide this too me,
+triggering unexpected run-time error due to the non-compilation of the
+related assembly.