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: a1d34ea2fb2a918139f0c03778250ee901586b77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// cs01621.cs: 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;
	  };
   }
}