[Mono-bugs] [Bug 69949][Nor] New - Need to report `need new keyword' when nested classes overlap an existing name

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 26 Nov 2004 16:44:22 -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 miguel@ximian.com.

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

--- shadow/69949	2004-11-26 16:44:22.000000000 -0500
+++ shadow/69949.tmp.29580	2004-11-26 16:44:22.000000000 -0500
@@ -0,0 +1,38 @@
+Bug#: 69949
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: miguel@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Need to report `need new keyword' when nested classes overlap an existing name
+
+The following program (located in mcs/errors/cs0108-3.cs should
+produce a 108 error:
+
+using System;
+
+public class Base
+{
+    public void InnerAttribute () {}
+}
+
+class O: Base
+{
+    [AttributeUsage(AttributeTargets.Class)]
+    public sealed class InnerAttribute: Attribute {
+    }
+}
+
+class D {
+        static void Main () {}
+}