[Mono-bugs] [Bug 24119] New - Ambiguos method reference in delegate creation

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
2 May 2002 14:21:54 -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.

http://bugzilla.ximian.com/show_bug.cgi?id=24119

--- shadow/24119	Thu May  2 10:21:54 2002
+++ shadow/24119.tmp.10700	Thu May  2 10:21:54 2002
@@ -0,0 +1,32 @@
+Bug#: 24119
+Product: Mono/MCS
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: gonzalo@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Ambiguos method reference in delegate creation
+
+The following code compiles with csc, but fails with mcs saying:
+.\bugxxxxx.cs(7) error CS-0014: Ambiguous method reference in delegate creation
+Error: Compilation failed
+-------------
+using System;
+class MyClass {
+	delegate bool IsAnything (Char c);
+
+	public static void Main () {
+		IsAnything validDigit;
+		validDigit = new IsAnything (Char.IsDigit);
+	}
+}
+------------