Files
mono/mcs/tests/gtest-lambda-24.cs
T
Marek Safar 4542976afc New tests.
svn path=/trunk/mcs/; revision=157614
2010-05-20 11:13:50 +00:00

31 lines
386 B
C#

using System;
static class E
{
public static string Test<T> (this C c, T s, Func<T> f)
{
return "s";
}
}
public class C
{
int Test<T> (T b, Func<bool> f)
{
return 1;
}
static string Foo<T> (T t, Action<T> a)
{
a (t);
return "f";
}
public static void Main ()
{
var c = new C ();
Action<string> f = l => Foo ("v", l2 => c.Test ("a", () => ""));
f ("-");
}
}