[Mono-bugs] [Bug 25796] New - Another problem with nested enums
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
5 Jun 2002 03:27:06 -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 manyoso@yahoo.com.
http://bugzilla.ximian.com/show_bug.cgi?id=25796
--- shadow/25796 Tue Jun 4 23:27:06 2002
+++ shadow/25796.tmp.3103 Tue Jun 4 23:27:06 2002
@@ -0,0 +1,65 @@
+Bug#: 25796
+Product: Mono/Runtime
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: manyoso@yahoo.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Another problem with nested enums
+
+Compile Pie.cs as a library:
+
+> mcs --target library Pie.cs
+
+And PieDemo.cs using the Pie.dll:
+
+> mcs PieDemo.cs -r Pie.dll
+
+And run:
+
+> mono PieDemo.exe
+
+(process:12054): ** WARNING **: Could not load class from token 0x01000002 in
+PieDemo.exe
+
+(process:12054): ** WARNING **: Missing method .ctor in typeref index 3
+
+(process:12054): ** ERROR **: file jit.c: line 1892 (mono_analyze_stack):
+assertion failed: (cm)
+aborting...
+Aborted
+
+//Pie.cs
+public class Pie
+{
+ public enum Fruit
+ {
+ Apple = 0,
+ Cherry = 1
+ }
+
+ public Pie (Fruit flavor)
+ {
+ // Nothing here
+ }
+}
+
+//PieDemo.cs
+using Pie;
+
+class Sample
+{
+ static void Main()
+ {
+ Pie myPie = new Pie(Pie.Fruit.Apple);
+ }
+}