Files
mono/mcs/errors/cs1623.cs
T
Martin Baulig e45d10831c 2004-07-14 Martin Baulig <[email protected]>
* cs1623.cs, cs1624.cs, cs1625.cs, cs1631.cs: New tests for
	iterators.

svn path=/trunk/mcs/; revision=31139
2004-07-14 14:28:04 +00:00

20 lines
292 B
C#

// CS1623: Iterators cannot have ref or out parameters
// Line: 8
using System;
using System.Collections;
class X
{
public static IEnumerable Test (ref int a)
{
yield return 0;
}
static void Main ()
{
int i = 3;
IEnumerable a = Test (ref i);
Console.WriteLine (a);
}
}