Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

18 lines
336 B
C#

//
// This test excercises the compiler being able to compute
// correctly the return type in the presence of null (as null
// will be implicitly convertible to anything
//
class X {
public static int Main ()
{
object o = null;
string s = o == null ? "string" : null;
string d = o == null ? null : "string";
return 0;
}
}