diff options
author | Marek Safar <marek.safar@gmail.com> | 2004-05-03 11:21:41 +0400 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2004-05-03 11:21:41 +0400 |
commit | c1fb15a59e1981655f336aa7d3fbd7ca8eba5cbd (patch) | |
tree | 2dda68f9e27a3bc10cb19321c2220c908f24fffa /mcs/errors/cs0592-7.cs | |
parent | 5f379ccd9ffae0f33187dfd7f1917a8b2ba8ce37 (diff) |
2004-05-03 Marek Safar <marek.safar@seznam.cz>
* cs0579-3.cs,
* cs0592-7.cs,
* cs0626.cs: 3 new error tests.
svn path=/trunk/mcs/; revision=26579
Diffstat (limited to 'mcs/errors/cs0592-7.cs')
-rw-r--r-- | mcs/errors/cs0592-7.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mcs/errors/cs0592-7.cs b/mcs/errors/cs0592-7.cs new file mode 100644 index 00000000000..7b76d0d2346 --- /dev/null +++ b/mcs/errors/cs0592-7.cs @@ -0,0 +1,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 +} |