summaryrefslogtreecommitdiff
path: root/mcs/errors/cs1706-2.cs
blob: 19b5ce108da9bc5d5e578a7ea177ac824b368d5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// CS1706: Anonymous methods and lambda expressions cannot be used in the current context
// Line: 14

public delegate void Proc();

public class AAttribute : System.Attribute
{
	public AAttribute(Proc p)
	{ }
}

public class Class
{
	[A((object)delegate { return; })]
	public void Foo()
	{
	}
}