Author: martin
Date: 2005-06-20 11:49:37 -0400 (Mon, 20 Jun 2005)
New Revision: 46241

Modified:
   trunk/mcs/gmcs/ChangeLog
   trunk/mcs/gmcs/generic.cs
Log:
2005-06-20  Martin Baulig  <[EMAIL PROTECTED]>

        * generic.cs (TypeManager.InferType): Also walk the class
        hierarchy for generic instances; fixes #75261.



Modified: trunk/mcs/gmcs/ChangeLog
===================================================================
--- trunk/mcs/gmcs/ChangeLog    2005-06-20 15:30:02 UTC (rev 46240)
+++ trunk/mcs/gmcs/ChangeLog    2005-06-20 15:49:37 UTC (rev 46241)
@@ -1,3 +1,8 @@
+2005-06-20  Martin Baulig  <[EMAIL PROTECTED]>
+
+       * generic.cs (TypeManager.InferType): Also walk the class
+       hierarchy for generic instances; fixes #75261.
+
 2005-06-17  Martin Baulig  <[EMAIL PROTECTED]>
 
        * typemanager.cs (TypeManager.IsBuiltinType): Use TypeToCoreType()

Modified: trunk/mcs/gmcs/generic.cs
===================================================================
--- trunk/mcs/gmcs/generic.cs   2005-06-20 15:30:02 UTC (rev 46240)
+++ trunk/mcs/gmcs/generic.cs   2005-06-20 15:49:37 UTC (rev 46241)
@@ -1997,12 +1997,10 @@
                        ArrayList list = new ArrayList ();
                        if (at.IsGenericInstance)
                                list.Add (at);
-                       else {
-                               for (Type bt = at.BaseType; bt != null; bt = 
bt.BaseType)
-                                       list.Add (bt);
+                       for (Type bt = at.BaseType; bt != null; bt = 
bt.BaseType)
+                               list.Add (bt);
 
-                               list.AddRange (TypeManager.GetInterfaces (at));
-                       }
+                       list.AddRange (TypeManager.GetInterfaces (at));
 
                        bool found_one = false;
 

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

Reply via email to