2 // Tests the various string implicit conversions
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;
40 // csc does not compile this one
41 const string s3
= null + null;
43 System
.Console
.WriteLine ("test ok");