Files
mono/mcs/tests/gtest-lambda-10.cs
T
Marek Safar 907bca6614 Use correct naming, add 4.0 profile
svn path=/trunk/mcs/; revision=138957
2009-07-29 13:53:27 +00:00

36 lines
691 B
C#

using System;
using System.Collections.Generic;
class C
{
public static void Foo<TSource> (IEnumerable<TSource> a)
{
}
public static void Foo<TCollection, TSource> (IEnumerable<TSource> a,
Func<TSource, IEnumerable <TCollection>> b)
{
}
public static void Foo<TCollection, TSource> (IEnumerable<TSource> a,
Func<TSource, TCollection[], IEnumerable <TCollection>> b)
{
}
public static void Foo<TCollection, TSource> (Func<TCollection[], IEnumerable <TSource>> b)
{
}
public static void Main ()
{
int[] a = new int [] { 1 };
Foo (a);
Foo (a, (int i) => { return a; });
Foo (a, (int i, int[] b) => { return a; });
Foo ((int[] b) => { return a; });
}
}