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

cs1939.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 54d1f5b8457efe0d08de21cb76a108eaad7762e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// CS1930: A range variable `v' may not be passes as `ref' or `out' parameter
// Line: 19


using System;
using System.Linq;

class C
{
	static int Foo (ref int value)
	{
		return 1;
	}
	
	public static void Main ()
	{
		var e = from v in "a"
			let r = 1
			select Foo (ref v);
	}
}