Updated with review feedback.
[mono.git] / mcs / tests / gtest-optional-14.cs
1 using System;
2 using System.Threading.Tasks;
3
4 class C
5 {
6         static void M (int x, int y = 1)
7         {
8         }
9
10         static void M<T> (T x, int y = 2)
11         {
12                 throw new ApplicationException ();
13         }
14
15         static void M2<T, U> (T u, Func<T, U> c, int y = 1)
16         {
17                 throw new ApplicationException ();
18         }
19
20         static void M2<T, U> (T u, Func<T, Task<U>> c, int y = 2)
21         {
22         }
23
24         static void Main ()
25         { 
26                 M (1);
27                 M2 (1, s => Task.FromResult (s));
28         }
29 }