[Mono-bugs] [Bug 36312][Wis] New - keyword 'new' not allowed on nested class

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Sun, 5 Jan 2003 03:26:20 -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 cdaly@locosoft.net.

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

--- shadow/36312	Sun Jan  5 03:26:20 2003
+++ shadow/36312.tmp.6464	Sun Jan  5 03:26:20 2003
@@ -0,0 +1,58 @@
+Bug#: 36312
+Product: Mono/MCS
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: cdaly@locosoft.net               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: keyword 'new' not allowed on nested class
+
+Please fill in this template when reporting a bug, unless you know what you are doing.
+Description of Problem:
+
+This is observed with mcs 0.17.  The use of keyword 'new' in the
+test case below is required by the microsoft csc compiler however
+mcs gives an error (see below) when encountering it.
+
+public class Foo : Bar
+{
+    public new class Baz
+    {
+    }
+}
+
+public class Bar
+{
+    public class Baz
+    {
+    }
+}
+
+
+Steps to reproduce the problem:
+1. Compile test case and observe error message
+2. 
+3. 
+
+Actual Results:  error message:
+
+Bug3.cs(3) error CS1530: Keyword new not allowed for namespace elements
+Compilation failed: 1 error(s), 0 warnings
+
+
+Expected Results:  successful compile
+
+
+How often does this happen?  always
+
+
+Additional Information: