[interp] Reduce computation under calc_section mutex
[mono-project.git] / mcs / tests / gtest-optional-14.cs
blobcf3ee90d634b7ea0f5cee308a09fc0b16b003801
1 using System;
2 using System.Threading.Tasks;
4 class C
6 static void M (int x, int y = 1)
10 static void M<T> (T x, int y = 2)
12 throw new ApplicationException ();
15 static void M2<T, U> (T u, Func<T, U> c, int y = 1)
17 throw new ApplicationException ();
20 static void M2<T, U> (T u, Func<T, Task<U>> c, int y = 2)
24 static void Main ()
26 M (1);
27 M2 (1, s => Task.FromResult (s));