[Mono-bugs] [Bug 44845][Wis] Changed - MCS doesn't find the best overloaded match for a constructor

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Fri, 20 Jun 2003 19:47:21 -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 ravi@ximian.com.


--- shadow/44845	Tue Jun 17 16:05:18 2003
+++ shadow/44845.tmp.23156	Fri Jun 20 19:47:21 2003
@@ -69,6 +69,43 @@
 Oddly, when I included the SubjectAltNameExtension code in the test
 file, the error went away.
 ------- Additional Comments From ravi@ximian.com  2003-06-17 16:05 -------
 Assigning to myself
+------- Additional Comments From ravi@ximian.com  2003-06-20 19:47 -------
+Okay, there is something very strange going on here. Look at the
+following debug output:
+[ravip@lambada bugzilla-bugs]$ mono ../mcs/mcs.exe bug-44845.cs
+Checking : Void .ctor()
+Candidate : Void .ctor()
+Checking : Void .ctor(X509Extension)
+Arg : Mono.Security.X509.X509Extension, Param :
+Mono.Security.X509.X509Extension -> Mono.Security.X509.X509Extension ?
+No !!
+Checking : Void .ctor(ASN1)
+Arg : Mono.Security.X509.X509Extension, Param : Mono.Security.ASN1
+Mono.Security.X509.X509Extension -> Mono.Security.ASN1 ?
+No !!
+bug-44845.cs(10) error CS1502: The best overloaded match for method '
+(Mono.Security.X509.X509Extension)' has some invalid arguments
+bug-44845.cs(10) error CS1503: Argument 0: Cannot convert from
+'Mono.Security.X509.X509Extension' to 'Mono.Security.X509.X509Extension'
+bug-44845.cs(10) error CS1501: New invocation: Can not find a
+constructor in `Mono.Security.X509.Extensions.SubjectAltNameExtension'
+for this argument list
+Compilation failed: 3 error(s), 0 warnings
+I got rid of the duplicate error messages for different constructors
+but the interesting thing here is that although the types of the
+argument and the constructor parameter are the same, mcs refuses to
+see that they are equal !
+I wonder if this has to do with the fact that the X509Extension is
+coming from an assembly.