Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / test-null-operator-20.cs
1 class M
2 {
3         public static void Main ()
4         {
5                 string s = null;
6                 s?.CompareTo ("xx").CompareTo(s?.EndsWith ("x")).GetHashCode ();
7
8                 string s1 = "abcd";
9                 string s2 = null;
10
11                 var idx = s1.Substring(1)[s2?.GetHashCode () ?? 0].GetHashCode ();
12         }
13 }