[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.


--- 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 Details: 
+Status: NEW   
+Priority: Minor
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: gonzalo@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+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?)