[Mono-bugs] [Bug 22119] New - incorrect name/type resolution with casts and some variable names
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
19 Mar 2002 10:42:57 -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 lupus@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=22119
--- shadow/22119 Tue Mar 19 05:42:57 2002
+++ shadow/22119.tmp.20233 Tue Mar 19 05:42:57 2002
@@ -0,0 +1,37 @@
+Bug#: 22119
+Product: Mono/MCS
+Version: unspecified
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: lupus@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: incorrect name/type resolution with casts and some variable names
+
+The included example fails to compile with mcs on both windows and linux.
+If I change the name of the method parameter A to something else it
+compiles. If I change the tipe of b (and the cast) it compiles as well.
+
+using System;
+namespace A {
+ public class Iface {
+ void bah() {}
+ }
+ class my {
+ A.Iface b;
+ void doit (Object A) {
+ b = (A.Iface)A;
+ }
+ public static int Main () {
+ return 0;
+ }
+ }
+}