Author: marek
Date: 2007-08-23 11:22:57 -0400 (Thu, 23 Aug 2007)
New Revision: 84704

Added:
   trunk/mcs/tests/ltest-10.cs
Log:
New test.


Added: trunk/mcs/tests/ltest-10.cs
===================================================================
--- trunk/mcs/tests/ltest-10.cs 2007-08-23 15:22:02 UTC (rev 84703)
+++ trunk/mcs/tests/ltest-10.cs 2007-08-23 15:22:57 UTC (rev 84704)
@@ -0,0 +1,35 @@
+// Compiler options: -langversion:linq
+
+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; });
+       }
+}
+


Property changes on: trunk/mcs/tests/ltest-10.cs
___________________________________________________________________
Name: svn:eol-style
   + native

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to