[mono/tests] Fix out of tree build.
[mono-project.git] / mcs / tests / test-null-operator-09.cs
blob9be052c44f17f30662ff2a25876c89d93929efdf
1 delegate int D (int t);
3 class X
5 D d = delegate { return 4; };
7 public static int Main ()
9 X x = null;
11 var res = x?.d (55);
12 if (res != null)
13 return 1;
15 x?.d (1);
17 return 0;