[Mono-bugs] [Bug 71649][Nor] New - gmcs: problem with inner enum inside a static class

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 23 Jan 2005 19:46:29 -0500 (EST)


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 sebastien@ximian.com.

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

--- shadow/71649	2005-01-23 19:46:29.000000000 -0500
+++ shadow/71649.tmp.5289	2005-01-23 19:46:29.000000000 -0500
@@ -0,0 +1,45 @@
+Bug#: 71649
+Product: Mono: Compilers
+Version: 1.1
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: sebastien@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: gmcs: problem with inner enum inside a static class
+
+Description of Problem:
+GMCS cannot compile a static class that declare an inner enum (and probably
+inner classes).
+
+
+Steps to reproduce the problem:
+1. Change /mcs/class/corlib/System/Environment.cs to be a static class
+(required for NET_2_0)
+2. Try to compile with gmcs
+
+
+Actual Results:
+System/Environment.cs(102) error CS0708:
+'System.Environment.SpecialFolder': cannot declare instance members in a
+static class
+
+
+Expected Results:
+Compile without error.
+
+
+How often does this happen? 
+Always
+
+
+Additional Information:
+This compiles without problem with CSC 8.x (Dec CTP).