[interp] Reduce computation under calc_section mutex
[mono-project.git] / mcs / tests / test-null-operator-13.cs
blob497911332b5b11df18175b8f0c5a0231a50925d1
1 using System;
3 static class Crash
5 static X GetFoo ()
7 return null;
10 static int Main ()
12 int res = (GetFoo ()?.ToLower ()).ToUpper ();
13 if (res != 0)
14 return 1;
16 return 0;
20 class X
22 public Y ToLower ()
24 throw new ApplicationException ("should not be called");
28 class Y
32 static class SS
34 public static int ToUpper (this Y y)
36 if (y != null)
37 return 1;
39 return 0;