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