[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / tests / gtest-191.cs
1 using System;
2 using System.Collections.Generic;
3
4 namespace Test1
5 {
6         public static class Test
7         {
8                 public static IEnumerable<T> Replace<T> ()
9                 {
10                         yield break;
11                 }
12         }
13 }
14
15 namespace Test2
16 {
17         public class Test<S>
18         {
19                 public static IEnumerable<T> Replace<T> ()
20                 {
21                         yield break;
22                 }
23         }
24 }
25
26 namespace Test3
27 {
28         public class Test<S>
29         {
30                 public static IEnumerable<KeyValuePair<S,T>> Replace<T> (IEnumerable<T> a,
31                                                                          IEnumerable<S> b)
32                 {
33                         yield break;
34                 }
35         }
36 }
37
38 namespace Test4
39 {
40         public class Test
41         {
42                 public static IEnumerable<T> Replace<T> ()
43                         where T : class
44                 {
45                         yield break;
46                 }
47         }
48 }
49
50 namespace Test5
51 {
52         public class Test
53         {
54                 public static IEnumerable<T> Replace<T> (T t)
55                 {
56                         yield return t;
57                 }
58         }
59 }
60
61 namespace Test6
62 {
63         public class Test
64         {
65                 public static IEnumerable<T> Replace<T> (T t)
66                 {
67                         T u = t;
68                         yield return u;
69                 }
70         }
71 }
72
73 namespace Test7
74 {
75         public class Test
76         {
77                 public static IEnumerable<T[]> Replace<T> (T[] t)
78                 {
79                         T[] array = t;
80                         yield return array;
81                 }
82         }
83 }
84
85 class X
86 {
87         public static void Main ()
88         { }
89 }