Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / gtest-iter-31.cs
1 using System.Collections.Generic;
2 using System.Linq;
3
4 class B
5 {
6         public object Foo (object obj)
7         {
8                 return null;
9         }
10 }
11
12 class C
13 {
14         B ctx = new B ();
15
16         public static void Main ()
17         {
18                 foreach (var c in new C ().Test ()) {                   
19                 }
20         }
21
22         IEnumerable<ushort> Test ()
23         {
24                 string[] s = new[] { "a", "b", "c" };
25
26                 var m = s.Select (l => ctx.Foo (l)).ToArray ();
27
28                 yield break;
29         }
30 }
31