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

cs0592-7.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7b76d0d234626a936b2ab6d7cb1a65659c3b4345 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// cs0592-7.cs: Attribute 'EnumAttribute' is not valid on this declaration type. It is valid on 'method' declarations only.
// Line: 13

using System;
using System.Reflection;

[AttributeUsage(AttributeTargets.Method)]
public class EnumAttribute : Attribute {}

public enum E
{
        e_1,
        [EnumAttribute]
        e_2
}