2010-02-19 Rodrigo Kumpera <rkumpera@novell.com>
[mcs.git] / tests / gtest-191.cs
blob3417cef9eac8a4e4f43215357bad591a42eed71b
1 using System;
2 using System.Collections.Generic;
4 namespace Test1
6 public static class Test
8 public static IEnumerable<T> Replace<T> ()
10 yield break;
15 namespace Test2
17 public class Test<S>
19 public static IEnumerable<T> Replace<T> ()
21 yield break;
26 namespace Test3
28 public class Test<S>
30 public static IEnumerable<KeyValuePair<S,T>> Replace<T> (IEnumerable<T> a,
31 IEnumerable<S> b)
33 yield break;
38 namespace Test4
40 public class Test
42 public static IEnumerable<T> Replace<T> ()
43 where T : class
45 yield break;
50 namespace Test5
52 public class Test
54 public static IEnumerable<T> Replace<T> (T t)
56 yield return t;
61 namespace Test6
63 public class Test
65 public static IEnumerable<T> Replace<T> (T t)
67 T u = t;
68 yield return u;
73 namespace Test7
75 public class Test
77 public static IEnumerable<T[]> Replace<T> (T[] t)
79 T[] array = t;
80 yield return array;
85 class X
87 static void Main ()
88 { }