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

27 lines
328 B
C#

class A
{
public static int Main ()
{
dynamic d = 'a';
object o = null;
char ch = o ?? d;
if (ch != 'a')
return 1;
const A a = null;
ch = a ?? d;
if (ch != 'a')
return 2;
ch = d ?? 'b';
if (ch != 'a')
return 3;
int? n = null;
dynamic d2 = null;
var r = n ?? d2;
return 0;
}
}