[Mono-bugs] [Bug 70490][Wis] New - Bug found in mcs and gmcs
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sun, 12 Dec 2004 15:04:45 -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 spigaz@hotmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=70490
--- shadow/70490 2004-12-12 15:04:45.000000000 -0500
+++ shadow/70490.tmp.32645 2004-12-12 15:04:45.000000000 -0500
@@ -0,0 +1,74 @@
+Bug#: 70490
+Product: Mono: Compilers
+Version: 1.1
+OS:
+OS Details: Gento 2.6.7
+Status: NEW
+Resolution:
+Severity: Unknown
+Priority: Wishlist
+Component: C#
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: spigaz@hotmail.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Bug found in mcs and gmcs
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+The mcs and gmcs can't find a type of another namespace.
+
+
+Steps to reproduce the problem:
+1. Compile the following files:
+1st file:
+
+namespace A.X
+{
+ public class X
+ {
+ }
+}
+
+2nd file:
+
+using A.X;
+
+namespace A.D
+
+{
+
+ public class B : X
+
+ {
+ object C(int a, X b)
+ {
+ return null;
+ }
+
+ }
+
+}
+
+Actual Results:
+Teste.cs(8) error CS0246: Cannot find type 'X'
+Compilation failed: 1 error(s), 0 warnings
+
+Expected Results:
+And I should have got:
+Compilation succeeded
+
+How often does this happen?
+Always
+
+Additional Information:
+Workarrounds:
+To place the using inside the namespace declaration or to place the B class
+in a namespace that has nothing in common with the current one, for
+instance: B.D.
+
+Observations, It finds the X class for the superclass of B, but not for the
+second argument of C...