"disable_omit_fp" can now be included in MONO_DEBUG
[mono-project.git] / mcs / tests / gtest-iter-16.cs
blob648bc6f7cec5f9a2cd0483f3838a7eb075004ead
1 using System.Collections.Generic;
3 namespace Test
5 public abstract class Base
7 public virtual IEnumerable<Base> GetStuff (int a)
9 yield return this;
13 public abstract class Derived : Base
15 public override IEnumerable<Base> GetStuff (int a)
17 foreach (var x in base.GetStuff (a))
18 yield return x;
22 public class SpecialDerived : Derived
24 public override IEnumerable<Base> GetStuff (int a)
26 foreach (var x in base.GetStuff (a))
27 yield return x;
30 public static void Main ()
32 Base b = new SpecialDerived ();
33 foreach (var a in b.GetStuff (5)) {