Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / test-79.cs
1 //
2 // This test excercises the compiler being able to compute
3 // correctly the return type in the presence of null (as null
4 // will be implicitly convertible to anything
5 //
6 class X {
7
8         public static int Main ()
9         {
10                 object o = null;
11
12                 string s = o == null ? "string" : null;
13                 string d = o == null ? null : "string";
14
15                 return 0;
16         }
17 }