[Mono-bugs] [Bug 63590][Nor] New - Classes being imported inappropriately

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 21 Aug 2004 23:22:47 -0400 (EDT)

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 david.mitchell@telogis.com.


--- shadow/63590	2004-08-21 23:22:47.000000000 -0400
+++ shadow/63590.tmp.30168	2004-08-21 23:22:47.000000000 -0400
@@ -0,0 +1,42 @@
+Bug#: 63590
+Product: Mono: Compilers
+Version: unspecified
+OS Details: Gentoo
+Status: NEW   
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: david.mitchell@telogis.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: Classes being imported inappropriately
+Description of Problem:
+Sometimes the compiler will import a class when it is not supposed to.
+Consider this:
+public class Foo {
+  public static void Main(string[] args) {
+    Driver d = new Driver();
+  }
+Steps to reproduce the problem:
+1. Compile the above code with 'mcs -r:System.Data Foo.cs'
+Actual Results:
+It compiles successfully.
+Expected Results:
+It should fail. The Driver class resides in the System.Data namespace, but
+the source file doesn't 'using' it.
+How often does this happen? 
+Every time
+Additional Information: