Author: marek
Date: 2007-02-17 11:31:31 -0500 (Sat, 17 Feb 2007)
New Revision: 73057
Modified:
trunk/mcs/mcs/ChangeLog
trunk/mcs/mcs/statement.cs
Log:
2007-02-17 Marek Safar <[EMAIL PROTECTED]>
A fix for bug #80408
* statement.cs: Report ambiguous warning when interfaces are not
related.
Modified: trunk/mcs/mcs/ChangeLog
===================================================================
--- trunk/mcs/mcs/ChangeLog 2007-02-17 14:59:47 UTC (rev 73056)
+++ trunk/mcs/mcs/ChangeLog 2007-02-17 16:31:31 UTC (rev 73057)
@@ -1,3 +1,8 @@
+2007-02-17 Marek Safar <[EMAIL PROTECTED]>
+
+ A fix for bug #80493
+ * statement.cs: Report ambiguous warning when interfaces are not
related.
+
2007-02-15 Marek Safar <[EMAIL PROTECTED]>
C# 3.0 extension methods.
Modified: trunk/mcs/mcs/statement.cs
===================================================================
--- trunk/mcs/mcs/statement.cs 2007-02-17 14:59:47 UTC (rev 73056)
+++ trunk/mcs/mcs/statement.cs 2007-02-17 16:31:31 UTC (rev 73057)
@@ -4988,6 +4988,10 @@
// Always prefer generics
enumerators
if (!TypeManager.IsGenericType
(mi.ReturnType)) {
+ if
(TypeManager.ImplementsInterface (mi.DeclaringType, result.DeclaringType) ||
+
TypeManager.ImplementsInterface (result.DeclaringType, mi.DeclaringType))
+ continue;
+
Report.SymbolRelatedToPreviousError (result);
Report.SymbolRelatedToPreviousError (mi);
Report.Warning (278, 2,
loc, "`{0}' contains ambiguous implementation of `{1}' pattern. Method `{2}' is
ambiguous with method `{3}'",
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches