[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / tests / gtest-iter-05.cs
1 using System;
2 using System.Collections.Generic;
3
4 public class Test
5 {
6         public static void Main ()
7         {
8                 Foo<int> nav = new Foo<int> ();
9                 IEnumerable<int> t = TestRoutine<int> (new int [] { 1 }, nav);
10                 new List<int> (t);
11         }
12
13         public static IEnumerable<T> TestRoutine<T> (IEnumerable<T> a, Foo<T> f)
14         {
15                 f.CreateItem<int> ();
16                 foreach (T n in a) {
17                         yield return n;
18                 }
19         }
20
21 }
22 public class Foo<T>
23 {
24         public void CreateItem<G> ()
25         {
26         }
27 }