[Tests] Fix Mono.Data.Tds tests on iOS (#5501)
[mono.git] / mcs / errors / cs0121-17.cs
1 // CS0121: The call is ambiguous between the following methods or properties: `Test.Foo<int,int>(int, System.Linq.Expressions.Expression<System.Func<int,int>>)' and `Test.Foo<int,int>(int, System.Func<int,int>)'
2 // Line: 22
3
4 using System;
5 using System.Linq;
6 using System.Linq.Expressions;
7
8 class Test
9 {
10         static int Foo<T, R> (T t, Expression<Func<T, R>> e)
11         {
12                 return 5;
13         }
14         
15         static int Foo<T, R> (T t, Func<T, R> e)
16         {
17                 return 0;
18         }
19
20         static void Main ()
21         {
22                 Foo (1, i => i);
23         }
24 }
25