linux-packaging-mono/mcs/tests/gtest-lambda-24.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01: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 ("-");
}
}