[ilasm] Don't break arguments compatiblity
[mono-project.git] / mcs / tests / test-null-operator-22.cs
blob04115f9385e8b30157612d77a0a7f2d7ccd869dc
1 class A
3 public A this [string arg] {
4 get {
5 return new A ();
7 set {
11 public int Count (string a)
13 return 1;
17 static class B
19 public static string Count (this A arg)
21 return "x";
25 class X
27 public static void Main ()
29 var a = new A ();
30 var b = a ["b"]?.Count ();
31 System.Console.WriteLine (b);