summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0837-2.cs
blob: eea4c130ea12f84ecf8d1f8ab3c658af097503b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// CS0837: The `as' operator cannot be applied to a lambda expression, anonymous method, or method group
// Line: 14

class X
{
	delegate void D ();
	
	static void Test (D d)
	{
	}
	
	static void Main ()
	{
		Test ((() => { }) as D);
	}
}