a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
18 lines
336 B
C#
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;
|
|
}
|
|
}
|