[corlib] Simplify RuntimeInformation by getting OS name from the runtime (#13164)
[mono-project.git] / mcs / errors / cs0121-28.cs
blobe722e1c9340fe1bdeda582a655019d0da7515814
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
4 using System;
6 public static class Program
8 public static void Main ()
10 Foo (Bar);
13 public static dynamic Bar (string s1)
15 return 1;
18 public static object Bar () {
19 return 2;
22 public static void Foo (Func<string, dynamic> input)
26 public static void Foo (Func<object> input)