New test.
[mono.git] / mcs / tests / gtest-161.cs
1 // Compiler options: -r:gtest-161-lib.dll
2 public class App {
3   public static void Main() {
4     string s = apply<int, string>(3,
5                                   delegate (int x) {
6                                     return x.ToString(); });
7     int y = apply<int, int>(3, FP.identity<int>);
8   }
9
10   static U apply<T, U>(T obj, FP.Mapping<T, U> f) {
11     return f(obj);
12   }
13 }