[build] Fix warning (#4177)
[mono-project.git] / mcs / tests / gtest-iter-27.cs
blobea4b4c41dd80f47d554de70c19ff6e282d936742
1 using System;
2 using System.Collections.Generic;
4 public class CompilerBug
6 public static void Main ()
8 foreach (string message in Foo ())
9 Console.WriteLine (message);
12 static IEnumerable<string> Foo ()
14 Action fnAction;
16 fnAction = () => { };
18 yield return "Executing action";
20 fnAction ();
22 yield return "Action executed";