[Mono-bugs] [Bug 31420][Nor] Changed - expressions with enum types
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
19 Oct 2002 21:51:24 -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=31420
--- shadow/31420 Tue Oct 1 13:47:02 2002
+++ shadow/31420.tmp.10722 Sat Oct 19 17:51:24 2002
@@ -1,13 +1,13 @@
Bug#: 31420
Product: Mono/MCS
Version: unspecified
OS: other
OS Details:
-Status: NEW
-Resolution:
+Status: RESOLVED
+Resolution: FIXED
Severity: Unknown
Priority: Normal
Component: Misc
AssignedTo: miguel@ximian.com
ReportedBy: lupus@ximian.com
QAContact: mono-bugs@ximian.com
@@ -40,6 +40,15 @@
// int c3 = a + b;
// int c3 = a + 1;
E c3 = a + 1;
// E c4 = a + b;
}
}
+
+------- Additional Comments From miguel@ximian.com 2002-10-19 17:51 -------
+Thanks for the bug report. The bug was simple, we were not handling
+the "U operator - (E x, E y)". The semantics are interesting, but not
+that complex. The rationale seems to be that it is valid to compute
+the difference between enumeration values, but it is not valid to
+return an enum value by addition.
+
+All the errors and those cases are now handled by the compiler.