Initial set of Ward sgen annotations (#5705)
[mono.git] / mcs / errors / cs1501-15.cs
1 // CS1501: No overload for method `Foo' takes `1' arguments
2 // Line: 15
3
4 using System;
5
6 class MainClass
7 {
8         public static void Main ()
9         {
10                 int val = 2;
11                 Run (() => {
12                         if (val > 3)
13                                 return;
14
15                         Foo (5);
16                 });
17         }
18
19         static void Foo ()
20         {
21         }
22
23         static void Run<T> (Func<T> func)
24         {
25         }
26
27         static void Run<T> (Action act)
28         {
29         }
30 }