2010-04-13 Sebastien Pouliot <sebastien@ximian.com>
[mono-project.git] / mcs / tests / gtest-062.cs
blob2822e169f93ed0068837ed7253a17492a97927e7
1 using System.Collections.Generic;
3 class X
5 public IEnumerable<int> Test (int a, long b)
7 while (a < b) {
8 a++;
9 yield return a;
13 static int Main ()
15 X x = new X ();
16 int sum = 0;
17 foreach (int i in x.Test (3, 8L))
18 sum += i;
20 return sum == 30 ? 0 : 1;