linux-packaging-mono/mcs/tests/gtest-lambda-10.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01: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; });
}
}