Fixes build
authorMarek Safar <marek.safar@gmail.com>
Tue, 10 Jul 2012 07:05:57 +0000 (08:05 +0100)
committerMarek Safar <marek.safar@gmail.com>
Tue, 10 Jul 2012 07:07:42 +0000 (08:07 +0100)
mcs/mcs/ecore.cs

index 2e9ce0ee4aa55c39e4faf22fea044fc7eee21f42..4e13fd92bb81345f0bbabcd6449ff2d6538cf204 100644 (file)
@@ -2294,7 +2294,7 @@ namespace Mono.CSharp {
 
                        var ns_candidates = ctx.Module.GlobalRootNamespace.FindTypeNamespaces (ctx, Name, Arity);
                        if (ns_candidates != null) {
-                               string usings = string.Join ("' or `", ns_candidates);
+                               string usings = string.Join ("' or `", ns_candidates.ToArray ());
                                report.Error (246, loc,
                                        "The type or namespace name `{0}' could not be found. Are you missing `{1}' using directive?",
                                        Name, usings);