[Mono-bugs] [Bug 56774][Nor] Changed - int -> byte better conversion than int -> short

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 30 May 2004 23:16:18 -0400 (EDT)


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 bmaurer@users.sf.net.

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

--- shadow/56774	2004-05-23 11:43:27.000000000 -0400
+++ shadow/56774.tmp.9306	2004-05-30 23:16:18.000000000 -0400
@@ -1,23 +1,23 @@
 Bug#: 56774
-Product: Mono: Class Libraries
+Product: Mono: Compilers
 Version: unspecified
 OS: Red Hat 9.0
 OS Details: 
 Status: NEW   
 Resolution: 
 Severity: Unknown
 Priority: Normal
-Component: CORLIB
+Component: C#
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: vladimir@pobox.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
 URL: 
 Cc: 
-Summary: implicit type conversion behaviour differs from csc
+Summary: int -> byte better conversion than int -> short
 
 The code here compiles without issue and prints "byte" with .NET 1.1;
 compiling with mcs gives:
 
 bug25.cs(21) error CS0121: Ambiguous call when selecting function due to
 implicit casts
@@ -58,6 +58,22 @@
 Modified test case.
 
 
 ------- Additional Comments From vladimir@pobox.com  2004-04-20 21:17 -------
 With the latest nGallery pre-release, compiling it without modifying
 the source is now blocking on this.
+
+------- Additional Comments From bmaurer@users.sf.net  2004-05-30 23:16 -------
+class T {
+	static void Main () {
+		X (1);
+	}
+  
+	static int X (byte x) {
+		return 0;
+	}
+	static int X (short x) {
+		return 1;
+	}
+}
+
+Note this is *NOT* a binder issue. We are not using that code here.