2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git] / errors / gcs0121-2.cs
bloba537f3190497df236e56f5d894049ecf66467588
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
4 using System;
5 using System.Linq;
6 using System.Linq.Expressions;
8 class Test
10 static int Foo<T, R> (T t, Expression<Func<T, R>> e)
12 return 5;
15 static int Foo<T, R> (T t, Func<T, R> e)
17 return 0;
20 static void Main ()
22 Foo (1, i => i);