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 [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=75658 --- shadow/75658 2005-07-28 14:37:39.000000000 -0400 +++ shadow/75658.tmp.11948 2005-07-28 14:37:39.000000000 -0400 @@ -0,0 +1,44 @@ +Bug#: 75658 +Product: Mono: Compilers +Version: unspecified +OS: +OS Details: +Status: NEW +Resolution: +Severity: +Priority: Normal +Component: C# +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: Incorrect compiler error message + +The following program produces an incredibly annoying error report: + +public class X { + + public X (int a) + { + } +} + +class D { + static void Main () + { + X x = new X ("hola"); + } +} + +It says: + +u.cs(11) error CS1501: No overload for method `X' takes `1' arguments + +Which is not true, it only happens that there is no overload that takes the +string argument. The compiler used to flag this correctly and now it +produces this error which sends the developer back to his buffer reading +over and over the code to find out the problem. + +I consider this a grave bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
