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

--- shadow/77509        2006-02-09 10:08:58.000000000 -0500
+++ shadow/77509.tmp.31147      2006-02-09 10:08:58.000000000 -0500
@@ -0,0 +1,57 @@
+Bug#: 77509
+Product: Mono: Compilers
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: [EMAIL PROTECTED]                            
+ReportedBy: [EMAIL PROTECTED]               
+QAContact: [EMAIL PROTECTED]
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: [GMCS] CS0121 - a call is ambiguous between the base class and 
generic derived class
+
+The example code below fails to compile because of incorrectly computed
+ambiguity:
+
+using System;
+
+class DerivedGenericClass<T> : BaseClass // this <T> causes the bug
+{
+        public override void Foo () {}
+
+        public void Baz ()
+        {
+                Foo ();
+        }
+}
+
+abstract class BaseClass
+{
+        public abstract void Foo ();
+}
+
+
+Actual Results:
+
+foo.cs(9,3): error CS0121: The call is ambiguous between the following
+methods o
+r properties: `BaseClass.Foo()' and `DerivedGenericClass<T>.Foo()'
+foo.cs(15,23):: `BaseClass.Foo()', name of symbol related to previous error
+foo.cs(5,23):: `DerivedGenericClass<T>.Foo()', name of symbol related to
+previou
+s error
+Compilation failed: 1 error(s), 0 warnings
+
+Expected Results:
+
+no error other than CS5001 (entrypoint not found).
+
+How often does this happen? 
+
+consistently.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to