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

cs1628.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5c6af888bcc5a4cd12f0dd7aeea9d88476144b34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// CS1628: Parameter `a' cannot be used inside `anonymous method' when using `ref' or `out' modifier
// Line: 15
using System;

delegate void D ();

class X {
	static void Main ()
	{
	}

	static void Host (ref int a)
	{
		D b = delegate {
			a = 1;
		};
	}
}