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

cs0657-16.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2b615541167847fdaaf129948b9ae7432f77ca09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// cs0657.cs : 'event' is not a valid attribute location for this declaration. Valid attribute locations for this declaration are 'method, param, return'
// Line: 14

using System;

[AttributeUsage(AttributeTargets.All)]
public class TestAttribute: Attribute
{
}

class C
{
    event ResolveEventHandler field { 
        [event: Test]
        add {}
        remove {}
            
    }
}