[Mono-bugs] [Bug 21070] Changed - Not folding values for Enum while declaring (both sides are FieldExprs)
1 May 2002 01:42: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 email@example.com.
--- shadow/21070 Wed Mar 13 11:41:48 2002
+++ shadow/21070.tmp.18360 Tue Apr 30 21:42:24 2002
@@ -85,6 +85,21 @@
------- Additional Comments From firstname.lastname@example.org 2002-03-13 11:41 -------
Miguel, that is indeed strange. What should be happening is what you
expect - that they resolve to EnumConstants. It's possible that why
they resolve to FieldExprs is because they are actually fields on the
+------- Additional Comments From email@example.com 2002-04-30 21:42 -------
+OK, I fixed this bug and then broke it again. Apparently during an
+`enum' context a number of operators are available which are not
+Like `operator + (Enum x, Enum y)' is valid in an enumeration
+declaration but nowhere else.
+I need to implement this by having a "flag" in the emitcontext about
+whether we are in an enum declaration or not, to enable the extra
+operators. Or I could just "unfold" an Enum during an enum
+declaration context to its real value.