Grammar fix
[mono.git] / mcs / errors / cs1706-2.cs
1 // cs1706-2.cs: Anonymous methods are not allowed in the attribute declaration
2 // Line: 14\r
3 \r
4 public delegate void Proc();\r
5 \r
6 public class AAttribute : System.Attribute\r
7 {\r
8         public AAttribute(Proc p)\r
9         { }\r
10 }\r
11 \r
12 public class Class\r
13 {\r
14         [A((object)delegate { return; })]\r
15         public void Foo()\r
16         {\r
17         }\r
18