2 using System
.Collections
.Generic
;
6 static int Test (List
<int> arg
)
11 static int Test (string arg
)
16 static int Test (int arg
)
21 static R Method
<T
, R
> (IEnumerable
<T
> t
, Func
<T
, R
> a
)
23 return a (default (T
));
26 static R Method2
<T
, R
> (IEnumerable
<T
> t
, Func
<List
<T
>, R
> a
)
28 return a (default (List
<T
>));
31 public static int Main ()
33 if (Method (new int[] { 1 }
, Test
) != 8)
36 if (Method2 (new int[] { 1 }
, Test
) != 10)