[Mono-bugs] [Bug 35489][Min] Changed - When a namespace is included twice, ambiguous reference errors are thrown.

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
12 Dec 2002 22:49:28 -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 bryan@alphora.com.

http://bugzilla.ximian.com/show_bug.cgi?id=35489

--- shadow/35489	Wed Dec 11 20:36:02 2002
+++ shadow/35489.tmp.24853	Thu Dec 12 17:49:28 2002
@@ -1,12 +1,12 @@
 Bug#: 35489
 Product: Mono/MCS
 Version: unspecified
 OS: unknown
 OS Details: 
-Status: NEEDINFO   
+Status: REOPENED   
 Resolution: 
 Severity: Unknown
 Priority: Minor
 Component: Misc
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: bryan@alphora.com               
@@ -147,6 +147,44 @@
 all other namespace elements
 
 C:\src\Dataphor\Base>
 
 ------- Additional Comments From gonzalo@ximian.com  2002-12-11 20:36 -------
 Can you attach the test case?
+
+------- Additional Comments From bryan@alphora.com  2002-12-12 17:49 -------
+using System;
+using System;
+
+public class Whatever
+{
+	public String Sure;
+}
+
+With mcs it can be built succesfully.  Very, very minor problem.
+
+You probably need to have warning CS0105 have the compiler ignore the 
+using directive.
+
+Here is the build messages:
+C:\src\Dataphor\Base>mcs test-using.cs
+
+You can run mcs with 'monomcs' on .NET, instead of mono, too.
+
+test-using.cs(2) warning CS0105: The using directive for 'System' 
+appeared previously in this namespace
+error CS5001: Program test-using.exe does not have an entry point 
+defined
+Compilation failed: 1 error(s), 1 warnings
+
+C:\src\Dataphor\Base>mcs test-using.cs
+
+You can run mcs with 'monomcs' on .NET, instead of mono, too.
+
+test-using.cs(2) warning CS0105: The using directive for 'System' 
+appeared previously in this namespace
+test-using.cs(6) error CS0104: `String' is an ambiguous reference 
+(System.String or System.String)
+Compilation failed: 1 error(s), 1 warnings
+
+C:\src\Dataphor\Base>
+