[Mono-bugs] [Bug 47469][Wis] New - MCS compiles syntactically-incorrect assignment code

bugzilla-daemon@indri.ximian.com bugzilla-daemon@indri.ximian.com
Mon, 11 Aug 2003 10:41:19 -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 dick@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=47469

--- shadow/47469	2003-08-11 10:41:19.000000000 -0400
+++ shadow/47469.tmp.27826	2003-08-11 10:41:19.000000000 -0400
@@ -0,0 +1,30 @@
+Bug#: 47469
+Product: Mono/MCS
+Version: unspecified
+OS: other
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: dick@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: MCS compiles syntactically-incorrect assignment code
+
+MCS (today's CVS) built this code from class/corlib/System/Array.cs without
+complaining:
+
+{
+                                        int iMid = (iMin + iMax) / 2;
+                                        object elt = array.GetValueImpl (iMid);
+
++                                       iCmp = comparer.Compare (value, elt);
+
+
+CSC said "System\Array.cs(429,1): error CS0131: The left-hand side of an
+assignment must be a variable, property or indexer" as expected.