181b81b4a4
Former-commit-id: cf92446697332992ec36726e78eb8703e1f259d7
26 lines
292 B
C#
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 }
|
|
);
|
|
}
|
|
} |