[interp] Fall back to old implementation when calling on proxy
[mono-project.git] / mcs / tests / gtest-lambda-05.cs
blob5d2ebb1cd389c02f729c25f39a62c906c72b0655
3 using System;
5 public class C
8 delegate int di (int x);
9 delegate string ds (string s);
10 delegate bool db (bool x);
12 static bool M (db d) { return d (false); }
13 static string M (ds d) { return "b"; }
14 static int M (di d) { return d (0); }
16 public static int Main ()
18 string[] s = new string[] { "1" };
19 int[] i = new int[] { 1 };
21 string s_res = M (x=> M (y=> x.ToLower ()));
22 int i_res = M (x=> M (y=> (x * 0) + 5));
24 if (s_res != "b")
25 return 1;
27 if (i_res != 5)
28 return 2;
30 return 0;