linux-packaging-mono/mcs/tests/gtest-etree-02.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

32 lines
498 B
C#

using System;
using System.Linq.Expressions;
class M
{
public static void Foo<T> (Expression<Func<T, T>> x)
{
}
static string Param (string b)
{
Expression<Func<string, Expression<Func<string>>>> e = (string s) => () => b;
return e.Compile () ("-##54!2").Compile () ();
}
public static int Main ()
{
Foo<int> ((i) => i);
Foo ((int i) => i);
Expression<Func<int, int>> func = (i) => i;
Foo (func);
if (Param ("my test") != "my test")
return 1;
return 0;
}
}