Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs1621.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 420e3772d7f52aef428f1cfb5759d4d623c6a5fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// CS01621: The yield statement cannot be used inside anonymous method blocks
// Line: 13

using System.Collections;

delegate object D ();

class C: IEnumerable
{
   public IEnumerator GetEnumerator ()
   {
      D d = delegate {
		yield return this;
	  };
   }
}