Fix FxCop warning CA1018 (attributes should have AttributeUsage)
[mono-project.git] / mcs / errors / cs1706.cs
blob5407ee669c00555652e5e626604d72b840f02961
1 // CS1706: Anonymous methods and lambda expressions cannot be used in the current context
2 // Line: 13
4 using System;
6 delegate void TestDelegate();
8 class MyAttr : Attribute
10 public MyAttr (TestDelegate d) { }
13 [MyAttr (delegate {} )]
14 class C