[Mono-bugs] [Bug 69519][Nor] New - problem w/ 'using' to alias classes inside of a namespace

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 15 Nov 2004 15:29:17 -0500 (EST)


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 trow@ximian.com.

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

--- shadow/69519	2004-11-15 15:29:17.000000000 -0500
+++ shadow/69519.tmp.17808	2004-11-15 15:29:17.000000000 -0500
@@ -0,0 +1,29 @@
+Bug#: 69519
+Product: Mono: Compilers
+Version: 1.1
+OS: NLD 9
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: trow@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: problem w/ 'using' to alias classes inside of a namespace
+
+I encountered this problem when trying to compile the C# port of Lucene
+1.4.  The attached two files illustrate the problem.  When I compile them,
+I get:
+
+% mcs using-problem-1.cs using-problem-2.cs
+using-problem-1.cs(6) error CS0246: Cannot find type 'Directory'
+Compilation failed: 1 error(s), 0 warnings
+
+This happens with both 1.0.2 and 1.1.2.  It seems to have something to do
+with the names of the namespaces --- if I change the name from
+Lucene.Net.Store to Foo, it works.