[Mono-bugs] [Bug 56456][Wis] New - CS1614: 'A' is ambiguous; use either '@A' or 'AAttribute'
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sun, 4 Apr 2004 12:45:14 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by bmaurer@users.sf.net.
http://bugzilla.ximian.com/show_bug.cgi?id=56456
--- shadow/56456 2004-04-04 12:45:14.000000000 -0400
+++ shadow/56456.tmp.28249 2004-04-04 12:45:14.000000000 -0400
@@ -0,0 +1,33 @@
+Bug#: 56456
+Product: Mono: Compilers
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: C#
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: bmaurer@users.sf.net
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: CS1614: 'A' is ambiguous; use either '@A' or 'AAttribute'
+
+We compile:
+
+using System;
+public class A : Attribute {
+ [A]
+ public static void Main() {
+ }
+}
+public class AAttribute : Attribute {}
+
+CSC gives:
+C:\Inetpub\ftproot>csc t.cs
+t.cs(4,3): error CS1614: 'A' is ambiguous; use either '@A' or 'AAttribute'
+t.cs(3,14): (Location of symbol related to previous error)
+t.cs(9,14): (Location of symbol related to previous error)