Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / gtest-lambda-02.cs
1
2 //
3 // Lambda expression test overload resolution with parameterless arguments
4 //
5
6 using System;
7 delegate string funcs (string s);
8 delegate int funci (int i);
9
10 class X {
11         static void Foo (funci fi)
12         {
13                 int res = fi (10);
14                 Console.WriteLine (res);
15         }
16         
17         static void Foo (funcs fs)
18         {
19                 string res = fs ("hello");
20                 Console.WriteLine (res);
21         }
22
23         public static void Main ()
24         {
25                 Foo (x => x + "dingus");
26         }
27 }