[mono/tests] Fix out of tree build.
[mono-project.git] / mcs / tests / gtest-lambda-21.cs
blobb189087756794fe5ecf0996b0907b621c941540e
1 using System;
3 class Program
5 static void Foo (Action<string> a)
7 a ("action");
10 static T Foo<T> (Func<string, T> f)
12 return f ("function");
15 static string Bar ()
17 return Foo (str => str.ToLower ());
20 public static int Main ()
22 var str = Foo (s => s);
23 Console.WriteLine (str);
24 if (str != "function")
25 return 1;
26 Foo (s => Console.WriteLine (s));
27 return 0;