add ISafeSerializationData
[mcs.git] / tests / test-79.cs
blob8a4012db8ad44399f886af3ef0610a36788aa98f
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 {
8 static int Main ()
10 object o = null;
12 string s = o == null ? "string" : null;
13 string d = o == null ? null : "string";
15 return 0;