[Mono-bugs] [Bug 59477][Blo] New - Lookup bug with nested classes.

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 2 Jun 2004 13:12:18 -0400 (EDT)


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=59477

--- shadow/59477	2004-06-02 13:12:18.000000000 -0400
+++ shadow/59477.tmp.30127	2004-06-02 13:12:18.000000000 -0400
@@ -0,0 +1,42 @@
+Bug#: 59477
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Blocker
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: miguel@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Lookup bug with nested classes.
+
+The following program should compile:
+
+public enum MyEnum
+{
+	V = 1
+	
+}
+
+class X {
+	
+	public MyEnum MyEnum {
+		get { return MyEnum.V; }
+	}
+	
+	class Nested {
+		void D (MyEnum m)
+		{
+			if (m == MyEnum.V)
+				return;
+		}
+	}
+	
+	static void Main () {}
+}