[Mono-bugs] [Bug 34187][Nor] Changed - shift-assignment not handled with a char type

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
19 Nov 2002 21:52:41 -0000


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 miguel@ximian.com.

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

--- shadow/34187	Mon Nov 18 05:51:08 2002
+++ shadow/34187.tmp.20413	Tue Nov 19 16:52:41 2002
@@ -2,13 +2,13 @@
 Product: Mono/MCS
 Version: unspecified
 OS: other
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Normal
 Component: Misc
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: lupus@ximian.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
@@ -22,6 +22,13 @@
 	static void Main() {
 		char x = (char)1;
 		x <<= 1;
 	}
 }
 I didn't try other operators, but there may be similar issues.
+
+------- Additional Comments From miguel@ximian.com  2002-11-19 16:52 -------
+14.13.2 forbids this use (in particular for char).
+
+The correct code would be:
+
+  x <<= (char) 1