-// cs1706-2.cs: Anonymous methods are not allowed in the attribute declaration
-// Line: 14\r
-\r
-public delegate void Proc();\r
-\r
-public class AAttribute : System.Attribute\r
-{\r
- public AAttribute(Proc p)\r
- { }\r
-}\r
-\r
-public class Class\r
-{\r
- [A((object)delegate { return; })]\r
- public void Foo()\r
- {\r
- }\r
-}
\ No newline at end of file
+// 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()
+ {
+ }
+}