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

31 lines
354 B
C#

using System;
class MainClass
{
public static void Main ()
{
Test1 (l => l.GetItems ());
Test2 (l => l.GetItems2 ());
}
static T[] Test1<T> (Func<IB, T[]> arg)
{
return null;
}
static IA<T>[] Test2<T> (Func<IB, IA<T>[]> arg)
{
return null;
}
}
interface IA<U>
{
}
interface IB
{
string[] GetItems ();
IA<string>[] GetItems2 ();
}