[mcs] C#7 type pattern matching
[mono.git] / mcs / tests / test-null-operator-09.cs
1 delegate int D (int t);
2
3 class X
4 {
5         D d = delegate { return 4; };
6
7         public static int Main ()
8         {
9                 X x = null;
10
11                 var res = x?.d (55);
12                 if (res != null)
13                         return 1;
14                         
15                 x?.d (1);
16
17                 return 0;
18         }
19 }