Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

23 lines
300 B
C#

using System.Collections.Generic;
class X
{
public IEnumerable<int> Test (int a, long b)
{
while (a < b) {
a++;
yield return a;
}
}
public static int Main ()
{
X x = new X ();
int sum = 0;
foreach (int i in x.Test (3, 8L))
sum += i;
return sum == 30 ? 0 : 1;
}
}