[Mono-bugs] [Bug 48679][Maj] Changed - Unboxed bool is neither true nor false

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 22 Sep 2003 21:19:42 -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 mass@akuma.org.

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

--- shadow/48679	2003-09-22 21:05:36.000000000 -0400
+++ shadow/48679.tmp.5955	2003-09-22 21:19:42.000000000 -0400
@@ -65,6 +65,30 @@
 
                 }
                 Console.WriteLine (c);
 
 'c' prints as '1' in mini and the microsoft vm, and '222114047' on my
 instance of mono. 
+
+------- Additional Comments From mass@akuma.org  2003-09-22 21:19 -------
+New, simpler reproduction recipe:
+
+using System;
+using System.Xml;
+using System.Xml.XPath;
+
+public class T {
+
+        static void Main ()
+        {
+                object val =  compare(0, 0);
+                bool b = (bool) val;
+                Console.WriteLine (true == b);
+                Console.WriteLine (false == b);
+        }
+
+        static object compare(int a, int b)
+        {
+            return a >= b;
+        }
+}
+