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

19 lines
257 B
C#
Raw Normal View History

using System.Collections.Generic;
public class c
{
public static IEnumerable<char> func ()
{
yield return '0';
yield break;
foreach (char c in "1") {
yield return c;
}
}
public static void Main ()
{
foreach (char a in func ()) {
}
}
}