[Mono-bugs] [Bug 43359][Wis] Changed - Overloaded method selection doesn't follow ECMA spec

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Tue, 20 May 2003 04:41:44 -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 skeet@pobox.com.

http://bugzilla.ximian.com/show_bug.cgi?id=43359

--- shadow/43359	Tue May 20 04:39:21 2003
+++ shadow/43359.tmp.17323	Tue May 20 04:41:44 2003
@@ -1,14 +1,14 @@
 Bug#: 43359
 Product: Mono/MCS
 Version: unspecified
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Wishlist
 Component: Misc
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: skeet@pobox.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
@@ -66,6 +66,36 @@
 
 Interestingly, the MS compiler has the same problem.
 
 The same occurs if you use reference types, e.g. string and object, where a
 conversion from string->string should be chosen over a conversion from
 string->object, but isn't.
+
+------- Additional Comments From skeet@pobox.com  2003-05-20 04:41 -------
+Oops - the bug is still a bug, but my test code is wrong. Derived
+should of course extend Base. Complete code reposted below to make
+things easier for testers:
+
+using System;
+
+public class Base
+{
+    public void Method (int parameter)
+    {
+        Console.WriteLine ("int");
+    }
+}
+
+public class Derived : Base
+{
+    public void Method (double parameter)
+    {
+        Console.WriteLine ("double");
+    }
+    
+    public static void Main()
+    {
+        Derived d = new Derived();
+        d.Method(5);
+    }
+}
+