Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / gtest-iter-20.cs
1 using System;
2 using System.Collections;
3
4 class X
5 {
6         public static int Main ()
7         {
8                 foreach (var i in GetAll ()) {
9                 }
10
11                 return 0;
12         }
13
14         static IEnumerable GetAll ()
15         {
16                 yield return 1;
17                 if (false) {
18                         yield return 2;
19                 }
20         }
21 }