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

cs1677-2.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9a6fc702c7d04021baf3ac2d006f85c5f0e3500a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// cs1677: out parameters are not permitted on anonymous delegate declarations.
// Line: 11
//
// The delegate has an explicit signature, so it can not be assigned.
//
delegate void D (int x);

class X {
	static void Main ()
	{
		D d2 = delegate (ref int x) {};
	}
}