Fix bug #566087.
[mcs.git] / tests / gtest-etree-02.cs
blob681fac947498abfd72e6e53b9bb7c9e5de270a6c
1 using System;
2 using System.Linq.Expressions;
4 class M
6 public static void Foo<T> (Expression<Func<T, T>> x)
10 static string Param (string b)
12 Expression<Func<string, Expression<Func<string>>>> e = (string s) => () => b;
13 return e.Compile () ("-##54!2").Compile () ();
16 public static int Main ()
18 Foo<int> ((i) => i);
20 Foo ((int i) => i);
22 Expression<Func<int, int>> func = (i) => i;
23 Foo (func);
25 if (Param ("my test") != "my test")
26 return 1;
28 return 0;