[Mono-bugs] [Bug 31420][Nor] Changed - expressions with enum types
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 firstname.lastname@example.org.
--- shadow/31420 Tue Oct 1 13:47:02 2002
+++ shadow/31420.tmp.10722 Sat Oct 19 17:51:24 2002
@@ -1,13 +1,13 @@
@@ -40,6 +40,15 @@
// int c3 = a + b;
// int c3 = a + 1;
E c3 = a + 1;
// E c4 = a + b;
+------- Additional Comments From email@example.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.