[Mono-bugs] [Bug 75685][Nor] New - Complex enums are not compilable

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Aug 2 06:02:56 EDT 2005


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 marek.safar at seznam.cz.

http://bugzilla.ximian.com/show_bug.cgi?id=75685

--- shadow/75685	2005-08-02 06:02:56.000000000 -0400
+++ shadow/75685.tmp.14915	2005-08-02 06:02:56.000000000 -0400
@@ -0,0 +1,70 @@
+Bug#: 75685
+Product: Mono: Compilers
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: marek.safar at seznam.cz                            
+ReportedBy: marek.safar at seznam.cz               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Complex enums are not compilable
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+
+Steps to reproduce the problem:
+1. 
+
+class Test
+{
+	enum E: sbyte
+	{
+		a = -3,
+		b = d,
+		c = E2.B,
+		d
+	}
+	
+	enum E2: sbyte
+	{
+		A = E.d,
+		B = E.a,
+		C
+	}
+	
+	public static void Main ()
+	{
+	}
+}
+
+
+Actual Results:
+
+test-enum.cs(6) error CS0110: The evaluation of the constant value for
+`Test.E.b' involves a circular definition.
+test-enum.cs(6) error CS0110: The evaluation of the constant value for
+`Test.E.b' involves a circular definition.
+test-enum.cs(6) error CS0118: `Test.E.d' is a `type' but a `type' was expected
+test-enum.cs(6) error CS0110: The evaluation of the constant value for
+`Test.E.b' involves a circular definition.
+test-enum.cs(6) error CS0103: The name `d' does not exist in the context of
+`Test.E'
+test-enum.cs(13) error CS0117: `Test.E' does not contain a definition for `d'
+
+Expected Results:
+
+No error
+
+How often does this happen? 
+
+
+Additional Information:


More information about the mono-bugs mailing list