Files
mono/mcs/errors/cs1622.cs
T
Marek Safar 0c31213775 error messages review
svn path=/trunk/mcs/; revision=46724
2005-06-29 14:55:08 +00:00

18 lines
313 B
C#

// cs1622.cs: Cannot return a value from iterators. Use the yield return statement to return a value, or yield break to end the iteration
// Line: 11
using System.Collections;
class X {
IEnumerator MyEnumerator (int a)
{
if (a == 0)
yield return 1;
else
return null;
}
static void Main ()
{
}
}