You've already forked linux-packaging-mono
Imported Upstream version 3.12.0
Former-commit-id: cf92446697332992ec36726e78eb8703e1f259d7
This commit is contained in:
26
mcs/tests/gtest-lambda-36.cs
Normal file
26
mcs/tests/gtest-lambda-36.cs
Normal file
@ -0,0 +1,26 @@
|
||||
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 }
|
||||
);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user