mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-19 01:31:17 -10:00
* cs1623.cs, cs1624.cs, cs1625.cs, cs1631.cs: New tests for iterators. svn path=/trunk/mcs/; revision=31139
20 lines
292 B
C#
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);
|
|
}
|
|
}
|