linux-packaging-mono/mcs/tests/gtest-lambda-36.cs
Jo Shields 181b81b4a4 Imported Upstream version 3.12.0
Former-commit-id: cf92446697332992ec36726e78eb8703e1f259d7
2015-01-13 10:44:36 +00:00

26 lines
292 B
C#

using System;
class D<T>
{
public void S<U, V> (Func<U> ftu, Func<T, U, V> ftuv)
{
}
}
class Test
{
static D<V> Factory<V> (V v)
{
return new D<V> ();
}
static void Main ()
{
var danon = Factory (new { q = 5 });
danon.S (
() => "x",
(l, str) => new { str }
);
}
}