for "build" config, import corlib common sources at unix instead (#11989)
[mono-project.git] / mcs / errors / cs1621-2.cs
blobfca7c673b3cbb96cdb5f9f3f09e7161298b6e283
1 // CS1621: The yield statement cannot be used inside anonymous method blocks
2 // Line: 12
4 using System;
5 using System.Collections;
7 public class Test
9 public IEnumerator Foo ()
11 Call (() => {
12 yield break;
13 });
15 yield break;
18 void Call (Action a)