eol
[mcs.git] / tests / gtest-lambda-23.cs
blobdded095b5d2a91b20d1dacbbfc995d5391376b4b
1 using System;
3 class C
5 static U Test<T, U>(T[] args, Func<T, U> f)
7 return f (args [1]);
10 public static int Main ()
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;
17 return 0;