Files
mono/mcs/errors/cs1706.cs
T
Marek Safar d742373106 New tests.
svn path=/trunk/mcs/; revision=89467
2007-11-12 16:04:40 +00:00

18 lines
255 B
C#

// CS1706: Anonymous methods and lambda expressions cannot be used in the current context
// Line: 13
using System;
delegate void TestDelegate();
class MyAttr : Attribute
{
public MyAttr (TestDelegate d) { }
}
[MyAttr (delegate {} )]
class C
{
}