[Mono-bugs] [Bug 25615][Nor] Changed - Ambiguous type references should produce a warning
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
8 Jul 2002 14:17:06 -0000
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 lupus@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=25615
--- shadow/25615 Fri Jun 7 16:56:15 2002
+++ shadow/25615.tmp.8088 Mon Jul 8 10:17:05 2002
@@ -1,12 +1,12 @@
Bug#: 25615
Product: Mono/MCS
Version: unspecified
OS: other
OS Details:
-Status: NEW
+Status: ASSIGNED
Resolution:
Severity: Unknown
Priority: Normal
Component: Misc
AssignedTo: mono-bugs@ximian.com
ReportedBy: mkestner@speakeasy.net
@@ -20,6 +20,24 @@
statements, mcs should throw a warning if the typename is not qualified
since the typename is ambiguous.
------- Additional Comments From ravi@ximian.com 2002-06-07 16:56 -------
Would you have a test case for this please ? It would be much easier
to fix if given one :-)
+
+------- Additional Comments From lupus@ximian.com 2002-07-08 10:17 -------
+Ravi: the sample is trivial from the description. Here it is one, anyway.
+using A;
+using B;
+namespace A { class a {} }
+namespace B { class a {} }
+class T {
+ static void Main() {
+ a val = new a();
+ }
+}
+
+csc won't compile the program, issuing the following error:
+name-ambig.cs(7,3): error CS0104: 'a' is an ambiguous reference
+name-ambig.cs(4,21): (Location of symbol related to previous error)
+name-ambig.cs(3,21): (Location of symbol related to previous error)
+