[w32file] Move MonoIO.Find{First,Next,Close} to managed
[mono.git] / mcs / tests / test-null-operator-22.cs
1 class A
2 {
3         public A this [string arg] {
4                 get {
5                         return new A ();
6                 }
7                 set {
8                 }
9         }
10
11         public int Count (string a)
12         {
13                 return 1;
14         }
15 }
16
17 static class B
18 {
19         public static string Count (this A arg)
20         {
21                 return "x";
22         }
23 }
24
25 class X
26 {
27         public static void Main ()
28         {
29                 var a = new A ();
30                 var b = a ["b"]?.Count ();
31                 System.Console.WriteLine (b);
32         }
33 }