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: c618bc29afdf604cf0b6cf2861e2facf6e9eb6e2 (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
}