Author: marek
Date: 2007-09-05 10:46:35 -0400 (Wed, 05 Sep 2007)
New Revision: 85363

Modified:
   trunk/mcs/mcs/ChangeLog
   trunk/mcs/mcs/convert.cs
Log:
2007-09-05  Marek Safar  <[EMAIL PROTECTED]>

        A fix for bug #82676
        * convert.cs (ImplicitReferenceConversionCore): Check both sides for
        non-generic interface types.
        


Modified: trunk/mcs/mcs/ChangeLog
===================================================================
--- trunk/mcs/mcs/ChangeLog     2007-09-05 14:20:04 UTC (rev 85362)
+++ trunk/mcs/mcs/ChangeLog     2007-09-05 14:46:35 UTC (rev 85363)
@@ -1,5 +1,11 @@
 2007-09-05  Marek Safar  <[EMAIL PROTECTED]>
 
+       A fix for bug #82676
+       * convert.cs (ImplicitReferenceConversionCore): Check both sides for
+       non-generic interface types.
+       
+2007-09-05  Marek Safar  <[EMAIL PROTECTED]>
+
        A fix for bug #82690
        * ecore.cs (PropertyExpr.EmitAssign): Leave a copy does just that.
        

Modified: trunk/mcs/mcs/convert.cs
===================================================================
--- trunk/mcs/mcs/convert.cs    2007-09-05 14:20:04 UTC (rev 85362)
+++ trunk/mcs/mcs/convert.cs    2007-09-05 14:46:35 UTC (rev 85363)
@@ -350,7 +350,7 @@
                                                !TypeManager.IsValueType 
(expr_type);
                                }
                                
-                               if (!TypeManager.IsGenericType (target_type)) {
+                               if (!TypeManager.IsGenericType (target_type) && 
!TypeManager.IsGenericType (expr_type)) {
                                        foreach (Type iface in 
TypeManager.GetInterfaces (target_type)) {
                                                if 
(TypeManager.ImplementsInterface (expr_type, iface))
                                                        return true;

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to