Merge pull request #1861 from saper/home-override
[mono-project.git] / mcs / tests / gtest-lambda-02.cs
blob819573ced0da22ff0377717769a8224d70507f9f
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 public static void Main ()
25 Foo (x => x + "dingus");