[Mono-bugs] [Bug 75658][Nor] New - Incorrect compiler error message

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Jul 28 14:37:39 EDT 2005

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 miguel at ximian.com.


--- 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 Details: 
+Status: NEW   
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: miguel at ximian.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+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.

More information about the mono-bugs mailing list