diff options
author | Raja R Harinath <harinath@hurrynot.org> | 2004-04-15 09:06:55 +0400 |
---|---|---|
committer | Raja R Harinath <harinath@hurrynot.org> | 2004-04-15 09:06:55 +0400 |
commit | d4383ca4a869cc051322ea93d3a28daee49db8a6 (patch) | |
tree | e379af6f2824bbd98f975771b17cfd31e2e10e37 /mcs/errors/cs1614.cs | |
parent | 8c145e73fb5c746e50636f5b6e9943e9e9b3f0e8 (diff) |
* attribute.cs (Attribute.CheckAttributeType): Check for ambiguous
attributes.
Fix for #56456.
* attribute.cs (Attribute.Resolve): Check for duplicate named
attributes.
Fix for #56463.
svn path=/trunk/mcs/; revision=25532
Diffstat (limited to 'mcs/errors/cs1614.cs')
-rw-r--r-- | mcs/errors/cs1614.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mcs/errors/cs1614.cs b/mcs/errors/cs1614.cs new file mode 100644 index 00000000000..a62d1486565 --- /dev/null +++ b/mcs/errors/cs1614.cs @@ -0,0 +1,11 @@ +// cs1614.cs: 'A': is ambiguous; use either '@A' or 'AAttribute' +// Line: 6 +// Bug #56456 + +using System; +public class A : Attribute { + [A] + public static void Main() { + } +} +public class AAttribute : Attribute {} |