[runtime] Avoid indirection when building MonoContext on darwin
[mono.git] / mcs / tests / gtest-183.cs
1 using System;
2 using System.Collections.Generic;
3
4 namespace test
5 {
6         class Test<T>
7         {
8                 public IEnumerable<T> Lookup(T item)
9                 {
10                         byte i = 3;
11                         byte j = 3;
12                         yield return item;
13                 }
14         }
15
16         class Program
17         {
18                 public static void Main (string[] args)
19                 {
20                         Test<string> test = new Test<string>();
21                         foreach(string s in test.Lookup("hi") )
22                         {
23                                 Console.WriteLine(s);
24                         }
25                 }
26         }
27 }