Author: martin
Date: 2007-04-03 13:23:07 -0400 (Tue, 03 Apr 2007)
New Revision: 75350
Modified:
trunk/mcs/mcs/ChangeLog
trunk/mcs/mcs/convert.cs
Log:
2007-04-03 Martin Baulig <[EMAIL PROTECTED]>
Fix #81044.
* convert.cs
(Convert.ExplicitReferenceConversion): We need to cast when
converting from IList<T> to S[].
Modified: trunk/mcs/mcs/ChangeLog
===================================================================
--- trunk/mcs/mcs/ChangeLog 2007-04-03 17:14:00 UTC (rev 75349)
+++ trunk/mcs/mcs/ChangeLog 2007-04-03 17:23:07 UTC (rev 75350)
@@ -1,3 +1,11 @@
+2007-04-03 Martin Baulig <[EMAIL PROTECTED]>
+
+ Fix #81044.
+
+ * convert.cs
+ (Convert.ExplicitReferenceConversion): We need to cast when
+ converting from IList<T> to S[].
+
2007-04-01 Marek Safar <[EMAIL PROTECTED]>
* decl.cs (FindExtensionMethods): Consider all candidates with same name
Modified: trunk/mcs/mcs/convert.cs
===================================================================
--- trunk/mcs/mcs/convert.cs 2007-04-03 17:14:00 UTC (rev 75349)
+++ trunk/mcs/mcs/convert.cs 2007-04-03 17:23:07 UTC (rev 75350)
@@ -1848,8 +1848,8 @@
// From System.Collecitons.Generic.IList<T> and
its base interfaces to a one-dimensional
// array type S[], provided there is an
implicit or explicit reference conversion from S to T.
//
- if (IList_To_Array(source_type, target_type))
- return new EmptyCast(source,
target_type);
+ if (IList_To_Array (source_type, target_type))
+ return new ClassCast (source,
target_type);
return null;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches