blob: cf3ee90d634b7ea0f5cee308a09fc0b16b003801 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
using System;
using System.Threading.Tasks;
class C
{
static void M (int x, int y = 1)
{
}
static void M<T> (T x, int y = 2)
{
throw new ApplicationException ();
}
static void M2<T, U> (T u, Func<T, U> c, int y = 1)
{
throw new ApplicationException ();
}
static void M2<T, U> (T u, Func<T, Task<U>> c, int y = 2)
{
}
static void Main ()
{
M (1);
M2 (1, s => Task.FromResult (s));
}
}
|