[Mono-bugs] [Bug 76532][Wis] New - mcs does not report error CS0123

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Oct 24 02:23:15 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 peter at novonyx.com.


--- shadow/76532	2005-10-24 02:23:15.000000000 -0400
+++ shadow/76532.tmp.15062	2005-10-24 02:23:15.000000000 -0400
@@ -0,0 +1,38 @@
+Bug#: 76532
+Product: Mono: Compilers
+Version: 1.1
+OS: All
+OS Details: 
+Status: NEW   
+Priority: Wishlist
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: peter at novonyx.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: mcs does not report error CS0123
+When compiling the attached code with csc, the following error is thrown:
+[s:\]csc b.cs
+Microsoft (R) Visual C# .NET Compiler version 7.10.6001.4
+for Microsoft (R) .NET Framework version 1.1.4322
+Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.
+b.cs(12,42): error CS0123: Method 'System.Collections.ArrayList.Remove
+        does not match delegate 'void
+        Application.bug.RemoveDelegate(System.Windows.Forms.Control)'
+When compiling with mcs, no error is given:
+[root at pbartok2 swf]# mcs b.cs -r:System.Windows.Forms.dll
+[root at pbartok2 swf]# 
+It seems that mcs should object to the delegate definition not matching 
+the signature of the method that's being assigned.

More information about the mono-bugs mailing list