Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs1706.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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
{
}