[Mono-bugs] [Bug 21647] New - Overload resolution problem with null.

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
9 Mar 2002 11:19:40 -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.


--- shadow/21647	Sat Mar  9 06:19:40 2002
+++ shadow/21647.tmp.1131	Sat Mar  9 06:19:40 2002
@@ -0,0 +1,27 @@
+Bug#: 21647
+Product: Mono/MCS
+Version: unspecified
+OS: other
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: lupus@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: Overload resolution problem with null.
+This problem manifested itself when compiling mcs on Linux: When DefineType
+(in interfaces.cs) is called with null as parent, the overload mechanism
+seems to choose the worng method as best and the resolution fails: this
+basically happens when a null is given instead of an actual object
+reference. I wrote a small test that fails in windows, too (though the
+original interfaces.cs code compiles, it may have been by chance, because I
+noted that the order of the methods returned to FindMembers may be
+different with our corlib: on windows the right method happened to come