Colin JN Breame wrote:
> Hi,
>
> The following compiles and runs fine:
>
> public class test_t {
>   public static void Main() {
>     System.Console.WriteLine(string.Join(" ", test()));
>   }
>   public static string[] test() {
>     string[] tmp = {"hello", "world"};
>     return tmp;
>     //return {"hello", "world"};
>   }
> }
>
>   
changing your return to return new string[] {"hello", "world"}; works.

I doubt the compiler knows that {"hello", "world"} should be a string array.

Matt
_______________________________________________
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to