[Mono-bugs] [Bug 21418] New - operator overloading problem?

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
6 Mar 2002 12:07:13 -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 lupus@ximian.com.

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

--- shadow/21418	Wed Mar  6 07:07:13 2002
+++ shadow/21418.tmp.18798	Wed Mar  6 07:07:13 2002
@@ -0,0 +1,30 @@
+Bug#: 21418
+Product: Mono/MCS
+Version: unspecified
+OS: other
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: lupus@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: operator overloading problem?
+
+I think this may have been introduced with the constant folding patch.
+The error I get is:
+$ mcs exception6.cs
+.\exception6.cs(12) error CS34: Operator `-' is ambiguous on operands of
+type `int' and `ulong'
+.\exception6.cs(51) error CS34: Operator `-' is ambiguous on operands of
+type `int' and `ulong'
+.\exception6.cs(90) error CS34: Operator `+' is ambiguous on operands of
+type `int' and `ulong'
+Error: Compilation failed
+
+Fails in the same way on linux and windows.