[Mono-bugs] [Bug 52516][Nor] New - enum with base type byte can't be used with +

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 23 Dec 2003 17:04:02 -0500 (EST)


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 pcgod@gmx.net.

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

--- shadow/52516	2003-12-23 17:04:02.000000000 -0500
+++ shadow/52516.tmp.6873	2003-12-23 17:04:02.000000000 -0500
@@ -0,0 +1,35 @@
+Bug#: 52516
+Product: Mono/Compilers
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: Unknown
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: pcgod@gmx.net               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: enum with base type byte can't be used with +
+
+Description of Problem:
+Mcs doesn't allow you to add an int to an enum with base type byte. This 
+works with csc.
+
+Steps to reproduce the problem:
+1. Try to compile the testcase
+
+Actual Results:
+test.cs(16) error CS0019: Operator + cannot be applied to operands of type 
+`T+Test' and `int'
+test.cs(17) error CS0165: Use of unassigned local variable `y'
+
+Expected Results:
+Compile without error.
+
+How often does this happen? 
+Always