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"};
}
}
However, uncommenting the return in test() yields a compile error. I don't
have access to an MS compiler so I can't check but I would expect (on grounds
of logic and consistency ;) it to compile...not that logic and consistency
have anything to do with it of course...
Colin
_______________________________________________
Mono-list maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list