Author: martin
Date: 2005-08-03 11:45:25 -0400 (Wed, 03 Aug 2005)
New Revision: 47968

Added:
   trunk/mcs/tests/gtest-191.cs
Log:
New test.


Added: trunk/mcs/tests/gtest-191.cs
===================================================================
--- trunk/mcs/tests/gtest-191.cs        2005-08-03 15:44:12 UTC (rev 47967)
+++ trunk/mcs/tests/gtest-191.cs        2005-08-03 15:45:25 UTC (rev 47968)
@@ -0,0 +1,89 @@
+using System;
+using System.Collections.Generic;
+
+namespace Test1
+{
+       public static class Test
+       {
+               public static IEnumerable<T> Replace<T> ()
+               {
+                       yield break;
+               }
+       }
+}
+
+namespace Test2
+{
+       public class Test<S>
+       {
+               public static IEnumerable<T> Replace<T> ()
+               {
+                       yield break;
+               }
+       }
+}
+
+namespace Test3
+{
+       public class Test<S>
+       {
+               public static IEnumerable<KeyValuePair<S,T>> Replace<T> 
(IEnumerable<T> a,
+                                                                        
IEnumerable<S> b)
+               {
+                       yield break;
+               }
+       }
+}
+
+namespace Test4
+{
+       public class Test
+       {
+               public static IEnumerable<T> Replace<T> ()
+                       where T : class
+               {
+                       yield break;
+               }
+       }
+}
+
+namespace Test5
+{
+       public class Test
+       {
+               public static IEnumerable<T> Replace<T> (T t)
+               {
+                       yield return t;
+               }
+       }
+}
+
+namespace Test6
+{
+       public class Test
+       {
+               public static IEnumerable<T> Replace<T> (T t)
+               {
+                       T u = t;
+                       yield return u;
+               }
+       }
+}
+
+namespace Test7
+{
+       public class Test
+       {
+               public static IEnumerable<T[]> Replace<T> (T[] t)
+               {
+                       T[] array = t;
+                       yield return array;
+               }
+       }
+}
+
+class X
+{
+       static void Main ()
+       { }
+}

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

Reply via email to