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

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 24 Jun 2004 08:55:12 -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 rharinath@novell.com.

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

--- shadow/56774	2004-06-23 08:23:53.000000000 -0400
+++ shadow/56774.tmp.26140	2004-06-24 08:55:12.000000000 -0400
@@ -98,6 +98,11 @@
 decimal
  From short to int, long, float, double, or decimal.
 
 a imp. conv. from byte -> short exists, but not short -> byte.
 Therefore, by the `Better Conversion' function, the `byte' method is
 better.
+
+------- Additional Comments From rharinath@novell.com  2004-06-24 08:55 -------
+Actually, I think this is using the "implicit constant expression
+conversion" part of the code, which bypasses those checks.
+