[Mono-bugs] [Bug 35631][Maj] Changed - Improper scoping for nested classes.

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
18 Dec 2002 17:48:29 -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 martin@ximian.com.

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

--- shadow/35631	Sun Dec 15 05:52:08 2002
+++ shadow/35631.tmp.26773	Wed Dec 18 12:48:29 2002
@@ -1,14 +1,14 @@
 Bug#: 35631
 Product: Mono/MCS
 Version: unspecified
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Major
 Component: Misc
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: seank@users.sf.net               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
@@ -51,7 +51,35 @@
 Check the attached file for an example... it compiles just peachy under
 csc, but fails miserably under mcs.
 
 ------- Additional Comments From seank@users.sf.net  2002-12-15 05:52 -------
 Created an attachment (id=2982)
 Example of borked Nested scoping  CSC=work MCS=no work
+
+
+------- Additional Comments From martin@ximian.com  2002-12-18 12:48 -------
+using System;
+
+public class Parent
+{
+	public Parent() { } 
+	private int Collide;
+ 
+	public class Nested
+	{ 
+		Nested()
+		{ 
+			Collide.Die();
+		} 
+	}
+} 
+ 
+public class Collide
+{ 
+	Collide() { }
+	public static void Die() 
+	{
+		Console.WriteLine("ack"); 
+	}  
+}
+