[Mono-bugs] [Bug 21554] New - Not correct overloading resolution
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
8 Mar 2002 16:40:10 -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 f_ai@hotmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=21554
--- shadow/21554 Fri Mar 8 11:40:10 2002
+++ shadow/21554.tmp.10991 Fri Mar 8 11:40:10 2002
@@ -0,0 +1,54 @@
+Bug#: 21554
+Product: Mono/MCS
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: f_ai@hotmail.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Not correct overloading resolution
+
+Description of Problem:
+The overloading resolution does not take in consideration the user
+defined implicit conversions.
+
+More details:
+On the static member 'OverloadResolve', 'ConvertImplicitStandard' is
+called to try to convert the calling parameters types to the type of the
+actual parameter, but this excludes the user defined conversions, i think
+that the solution is as simple as calling 'ConvertImplicit' this will
+call 'ConvertImplicitStandard' and if needed 'ImplicitUserConversion'.
+
+Additional Information:
+using Snapshot of Mar-06-02
+
+Source code to reproduce the problem:
+
+using System.Drawing;
+namespace N1
+{
+ public class D
+ {
+ public void M ()
+ {
+ Rectangle rect;
+ N(rect);
+ }
+
+ public bool N (RectangleF rect)
+ {
+ if (rect.X > rect.Y)
+ return true;
+
+ return false;
+ }
+ }
+}