[Mono-bugs] [Bug 34165][Blo] New - Incorrectly reporting CS0121: Ambiguous call when selecting function due to implicit casts

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
17 Nov 2002 13:56:14 -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 martin@ximian.com.

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

--- shadow/34165	Sun Nov 17 08:56:14 2002
+++ shadow/34165.tmp.11040	Sun Nov 17 08:56:14 2002
@@ -0,0 +1,37 @@
+Bug#: 34165
+Product: Mono/MCS
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Blocker
+Component: Misc
+AssignedTo: martin@ximian.com                            
+ReportedBy: martin@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Incorrectly reporting CS0121: Ambiguous call when selecting function due to implicit casts
+
+using System;
+
+class X
+{
+	X (long value)
+	{
+		Console.WriteLine ("Long");
+	}
+
+	X (ulong value)
+	{
+		Console.WriteLine ("ULong");
+	}
+
+	static void Main ()
+	{
+		X x = new X (4);
+	}
+}