[Mono-bugs] [Bug 29479][Min] New - mcs allows 'using XXX' when XXX does not exists

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
26 Aug 2002 23:26:42 -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 gonzalo@ximian.com.

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

--- shadow/29479	Mon Aug 26 19:26:42 2002
+++ shadow/29479.tmp.21200	Mon Aug 26 19:26:42 2002
@@ -0,0 +1,38 @@
+Bug#: 29479
+Product: Mono/MCS
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Minor
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: gonzalo@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mcs allows 'using XXX' when XXX does not exists
+
+mcs compiles programs even if they use 'using' with a namespace that is not
+defined anywhere.
+
+Steps to reproduce the problem:
+1. Compile this one:
+using NonExistentNamespace;
+class C
+{
+	static void Main (string [] args)
+	{
+	}
+}
+
+Actual Results:
+Compilation succeeded.
+
+Expected Results:
+bugnuevo.cs(1,7): error CS0246: The type or namespace name
+'NonExistentNamespace' could not be found (are you
+        missing a using directive or an assembly reference?)