[Mono-bugs] [Bug 78935][Nor] New - mcs does not resolve collision between private base member and public global type with same name

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Jul 23 18:10:22 EDT 2006


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 marek.safar at seznam.cz.

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

--- shadow/78935	2006-07-23 18:10:22.000000000 -0400
+++ shadow/78935.tmp.19866	2006-07-23 18:10:22.000000000 -0400
@@ -0,0 +1,67 @@
+Bug#: 78935
+Product: Mono: Compilers
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: marek.safar at seznam.cz               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mcs does not resolve collision between private base member and public global type with same name
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+mcs does not resolve colision between private base member and public global
+type with same name
+
+Steps to reproduce the problem:
+1. 
+class A
+{
+	private int Thread
+	{
+		get
+		{
+			return 0;
+		}
+	}
+}
+
+class Thread
+{
+	public static void Foo ()
+	{
+	}
+}
+
+class B : A
+{
+	public static void Main ()
+	{
+		Thread.Foo ();
+	}
+}
+
+Actual Results:
+
+bug.cs(23,3): error CS0120: `A.Thread': An object reference is required for
+the nonstatic field, method or property
+bug.cs(23,3): error CS0117: `object' does not contain a definition for `Foo'
+
+Expected Results:
+
+No error.
+
+How often does this happen? 
+
+
+Additional Information:


More information about the mono-bugs mailing list