linux-packaging-mono/mcs/tests/gtest-iter-20.cs

22 lines
229 B
C#
Raw Normal View History

using System;
using System.Collections;
class X
{
public static int Main ()
{
foreach (var i in GetAll ()) {
}
return 0;
}
static IEnumerable GetAll ()
{
yield return 1;
if (false) {
yield return 2;
}
}
}