[Mono-bugs] [Bug 21072] Changed - Crash compiling a constant variable of Enum type

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
13 Mar 2002 00:03:53 -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=21072

--- shadow/21072	Thu Feb 28 16:59:36 2002
+++ shadow/21072.tmp.8908	Tue Mar 12 19:03:53 2002
@@ -97,6 +97,15 @@
 issue I ran into was precisely what you mention - nested enums cannot
 be handled at all ! Basically, there's no TypeBuilder.DefineNestedEnum
 or even TypeBuilder.DefineEnum; so we have to make Enums global [using
 ModuleBuilder.DefineEnum] which of course, screws things up. 
 
 
+
+------- Additional Comments From miguel@ximian.com  2002-03-12 19:03 -------
+I wanted to follow up on what Ravi said.  
+
+I initially thought that you could define nested Enums (using the
+"Top+Nested" syntax), but the code in Reflection.Emit does not allow
+this.  That is why you see the current TypeBuilder approach.
+
+miguel.