summaryrefslogtreecommitdiff
path: root/mcs/errors/cs1706.cs
blob: 5407ee669c00555652e5e626604d72b840f02961 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 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
{
}