[Mono-bugs] [Bug 30080][Nor] New - Nested enums cannot access const variables

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
9 Sep 2002 22:21: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 gonzalo@ximian.com.

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

--- shadow/30080	Mon Sep  9 18:21:06 2002
+++ shadow/30080.tmp.31416	Mon Sep  9 18:21:06 2002
@@ -0,0 +1,38 @@
+Bug#: 30080
+Product: Mono/MCS
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: gonzalo@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Nested enums cannot access const variables
+
+Steps to reproduce the problem:
+1. Try compiling:
+public class Blah
+{
+        enum Bar {
+                a = bl
+        }
+
+        const int bl = 6;
+}
+Actual Results:
+from40.cs(5) error CS0122: `bl' is inaccessible because of its protection level
+Compilation failed: 1 error(s), 0 warnings
+
+Expected Results:
+Compilation successful.
+
+
+Additional Information:
+Extracted from test-40.cs