linux-packaging-mono/mcs/tests/test-anon-117.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

17 lines
271 B
C#

// Supported by C# 3.0
public class C
{
public delegate T Func<T> (T t);
public static void Test<T, U> (Func<T> f, U u)
{
}
public static void Main ()
{
Test<int, string> (delegate (int i) { return i; }, "");
Test (delegate (int i) { return i; }, 1);
}
}