summaryrefslogtreecommitdiff
path: root/mcs/errors/cs1951-2.cs
blob: 615d2cf2e114e8cae22f088cc3ea8f895bcc8c44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// CS1951: An expression tree parameter cannot use `ref' or `out' modifier
// Line: 13

using System;
using System.Linq.Expressions;

class C
{
	delegate int D (out int a);
	
	public static void Main ()
	{
		Expression<D> e = (out int a) => a = 0;
	}
}