Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / errors / cs1621-2.cs
1 // CS1621: The yield statement cannot be used inside anonymous method blocks
2 // Line: 12
3
4 using System;
5 using System.Collections;
6
7 public class Test
8 {
9         public IEnumerator Foo ()
10         {
11                 Call (() => {
12                         yield break;
13                 });
14
15                 yield break;
16         }
17
18         void Call (Action a)
19         {
20         }
21 }