Merge pull request #3769 from evincarofautumn/fix-verify-before-allocs
[mono.git] / mcs / errors / cs0121-28.cs
1 // CS0121: The call is ambiguous between the following methods or properties: `Program.Foo(System.Func<string,dynamic>)' and `Program.Foo(System.Func<object>)'
2 // Line: 10
3
4 using System;
5
6 public static class Program
7 {
8         public static void Main ()
9         {
10                 Foo (Bar);
11         }
12
13         public static dynamic Bar (string s1)
14         {
15                 return 1;
16         }
17         
18         public static object Bar () {
19                 return  2;
20         }
21
22         public static void Foo (Func<string, dynamic> input)
23         {
24         }
25
26         public static void Foo (Func<object> input)
27         {
28         }
29 }