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 [EMAIL PROTECTED]

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

--- shadow/80407        2006-12-30 12:30:11.000000000 -0500
+++ shadow/80407.tmp.19263      2006-12-30 12:30:11.000000000 -0500
@@ -0,0 +1,72 @@
+Bug#: 80407
+Product: Mono: Compilers
+Version: 1.2
+OS: GNU/Linux [Other]
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: [EMAIL PROTECTED]                            
+ReportedBy: [EMAIL PROTECTED]               
+QAContact: [EMAIL PROTECTED]
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: CS0229 / CS0122 errors reported when hiding property in interface
+
+When a given property from an interface B hides a property from an 
+implemented interface A, then mcs reports errors CS0229 and CS0122 when 
+another interface (C) implements B.
+
+To reproduce, compile the following code fragment:
+
+public class Test
+{
+  private C _vssItem = null;
+
+  public string Spec {
+    get { return _vssItem.Spec; }
+  }
+
+  public void Checkout ()
+  {
+    _vssItem.Checkout ();
+  }
+}
+
+interface A
+{
+  void Checkout ();
+  string Spec
+  {
+    get;
+  }
+}
+
+interface B : A
+{
+  new void Checkout ();
+  new string Spec
+  {
+    get;
+  }
+}
+
+interface C : B
+{
+}
+
+Expected result:
+
+Successful compilation.
+
+Actual result:
+
+test.cs(6,16): error CS0229: Ambiguity between `B.Spec' and `A.Spec'
+test.cs(27,13): (Location of the symbol related to previous error)
+test.cs(18,9): (Location of the symbol related to previous error)
+test.cs(6,16): error CS0122: `A.Spec' is inaccessible due to its 
+protection level
+test.cs(18,9): (Location of the symbol related to previous error)
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to