2009-12-12 Rodrigo Kumpera <rkumpera@novell.com>
[mcs.git] / tests / gtest-lambda-02.cs
blobbb32cc18ab86b4dde42889cf04c64056ed3695a7
2 //
3 // Lambda expression test overload resolution with parameterless arguments
4 //
6 using System;
7 delegate string funcs (string s);
8 delegate int funci (int i);
10 class X {
11 static void Foo (funci fi)
13 int res = fi (10);
14 Console.WriteLine (res);
17 static void Foo (funcs fs)
19 string res = fs ("hello");
20 Console.WriteLine (res);
23 static void Main ()
25 Foo (x => x + "dingus");