2007-04-03 Martin Baulig <martin@ximian.com>
[mono.git] / mcs / mcs / convert.cs
index 7228f16f3f28585cb6b33322beeddfe93151f708..d3476b18a5a2223a8581973d17c82c81e16d6dc8 100644 (file)
@@ -1848,8 +1848,8 @@ namespace Mono.CSharp {
                                // 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;
                        }