Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs1623.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5f188543c99d7700d9f6c5a86bca512fc46ac06a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// 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);
	}
}