[Mono-bugs] [Bug 21070] Changed - Not folding values for Enum while declaring (both sides are FieldExprs)

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
13 Mar 2002 16:41:48 -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 ravi@ximian.com.


--- shadow/21070	Tue Mar 12 18:06:54 2002
+++ shadow/21070.tmp.16889	Wed Mar 13 11:41:48 2002
@@ -79,6 +79,12 @@
 Ravi, I have a question there: the constant folder is not being
 invoked, because both sides of the Binary expression (A1 and A2) are
 not resolving to an EnumConstant, but instead they are resolving to a
+------- Additional Comments From ravi@ximian.com  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
+Enum's TypeBuilder