2 // Tests the various string implicit conversions
11 public static int Main ()
16 if (("a" + "b") != "ab")
19 if (("one" + one) != "one1")
22 if ((one + "one") != "1one")
25 if ((one + "two" + two) != "1two2")
28 if ((X.A + "a") != "Aa")
31 if (((int)X.A) + "a" != "1a")
34 if ((1 + " " + "hello") != "1 hello")
37 const string s1 = null + (string)null;
38 const string s2 = (string)null + null;
41 s = (string)null + null;
45 s = null + (string)null;
49 s = (object)null + null;
53 s = null + (object)null;
61 s = (string)null + (object)null;
65 s = (object)null + (string)null;
69 System.Console.WriteLine ("test ok");