You've already forked linux-packaging-mono
Imported Upstream version 3.10.0
Former-commit-id: 172c8e3c300b39d5785c7a3e8dfb08ebdbc1a99b
This commit is contained in:
19
mcs/tests/test-null-operator-09.cs
Normal file
19
mcs/tests/test-null-operator-09.cs
Normal file
@ -0,0 +1,19 @@
|
||||
delegate int D (int t);
|
||||
|
||||
class X
|
||||
{
|
||||
D d = delegate { return 4; };
|
||||
|
||||
public static int Main ()
|
||||
{
|
||||
X x = null;
|
||||
|
||||
var res = x?.d (55);
|
||||
if (res != null)
|
||||
return 1;
|
||||
|
||||
x?.d (1);
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user