codeowners update
[mono.git] / mcs / tests / gtest-lambda-23.cs
1 using System;
2
3 class C
4 {
5         static U Test<T, U>(T[] args, Func<T, U> f)
6         {
7                 return f (args [1]);
8         }
9
10         public static int Main ()
11         {
12                 var s = new string [] { "aaa", "bbb" };
13                 var foo = Test (s, i => { try { return i; } catch { return null; } });
14                 if (foo != s [1])
15                         return 1;
16
17                 return 0;
18         }
19 }