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

cs1706-2.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 03d77ecd4083a1776343f854dd3fc13cb3f5449a (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()
	{
	}
}