[Mono-bugs] [Bug 26974][Nor] Changed - Badly typed struct constructor invocations cause call to default ctr instead of compiler error

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
30 Jun 2002 18:46:02 -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 gonzalo@ximian.com.


--- shadow/26974	Tue Jun 25 16:05:06 2002
+++ shadow/26974.tmp.31683	Sun Jun 30 14:46:02 2002
@@ -1,14 +1,14 @@
 Bug#: 26974
 Product: Mono/MCS
 Version: unspecified
+OS: unknown
 OS Details: 
-Status: NEW   
+Status: RESOLVED   
+Resolution: FIXED
+Severity: Unknown
 Priority: Normal
 Component: Misc
 AssignedTo: adb@tardis.ed.ac.uk                            
 ReportedBy: adb@tardis.ed.ac.uk               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
@@ -39,6 +39,17 @@
 Should fail with 'no constructor matches argument list' error.
 Additional Information:
 This only affects structs, not classes.  I have a one-line patch which I'm
+------- Additional Comments From gonzalo@ximian.com  2002-06-30 14:46 -------
+In current mcs:
+26974.cs(4) error CS1501: New invocation: Can not find a constructor
+for this argument list
+though MS says:
+26974.cs(4,26): error CS1502: The best overloaded method match for
+'Test.Test(int)' has some invalid arguments
+26974.cs(4,35): error CS1503: Argument '1': cannot convert from
+'string' to 'int'