<?xml version="1.0" encoding="us-ascii"?>
<ErrorDocumentation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <ErrorName>CS1624</ErrorName>
  <Examples>
    <string>// cs1624-2.cs: The body of `X.this[int].set' cannot be an iterator block because `void' is not an iterator interface type
// Line: 15
using System;
using System.Collections;

class X
{
	IEnumerator this [int u]
	{
	    get {
		yield return 1;
		yield return 2;
		yield return 3;
	    }
	    set
	    {
		yield return 3;		
	    }	    
	}
}
</string>
    <string>// CS1624: The body of `Program.Program()' cannot be an iterator block because `void' is not an iterator interface type
// Line: 6

class Program {
        public Program() {
                yield break;
        }
        static public void Main() {
        }
}
</string>
    <string>// CS1624: The body of `C.Test&lt;TSource&gt;(System.Collections.Generic.IEnumerable&lt;TSource&gt;)' cannot be an iterator block because `TSource' is not an iterator interface type
// Line: 8

using System.Collections.Generic;

public class C
{
	public static TSource Test&lt;TSource&gt;(IEnumerable&lt;TSource&gt; source)
	{
		foreach (TSource element in source)
			yield return element;
	}
}
</string>
    <string>// cs1624.cs: The body of `X.Test(int)' cannot be an iterator block because `System.Collections.ArrayList' is not an iterator interface type
// Line: 8
using System;
using System.Collections;

class X
{
	public static ArrayList Test (int a)
	{
		yield return 0;
        }

	static void Main ()
	{
		IEnumerable a = Test (3);
		Console.WriteLine (a);
	}
}
</string>
  </Examples>
</ErrorDocumentation>