[runtime] Coverage profiler fixes (#5698)
[mono.git] / mcs / tests / gtest-lambda-10.cs
1
2
3 using System;
4 using System.Collections.Generic;
5
6 class C
7 {
8         public static void Foo<TSource> (IEnumerable<TSource> a)
9         {
10         }
11         
12         public static void Foo<TCollection, TSource> (IEnumerable<TSource> a,
13                 Func<TSource, IEnumerable <TCollection>> b)
14         {
15         }
16         
17         public static void Foo<TCollection, TSource> (IEnumerable<TSource> a,
18                 Func<TSource, TCollection[], IEnumerable <TCollection>> b)
19         {
20         }
21         
22         public static void Foo<TCollection, TSource> (Func<TCollection[], IEnumerable <TSource>> b)
23         {
24         }       
25         
26         public static void Main ()
27         {
28                 int[] a = new int [] { 1 };
29                 Foo (a);
30                 Foo (a, (int i) => { return a; });
31                 Foo (a, (int i, int[] b) => { return a; });
32                 Foo ((int[] b) => { return a; });
33         }
34 }
35