2005-06-16 Sebastien Pouliot <sebastien@ximian.com>
[mono.git] / mcs / errors / cs1622.cs
1 // cs1622.cs: Return not allowed in iterator method
2 // Line: 11
3 using System.Collections;
4
5 class X {
6         IEnumerator MyEnumerator (int a)
7         {
8                 if (a == 0)
9                         yield return 1;
10                 else
11                         return null;
12         }
13
14         static void Main ()
15         {
16         }
17 }