[Mono-bugs] [Bug 77200][Nor] New - mcs behavior on bitwise operator |

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Jan 10 16:49:21 EST 2006


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 jonel at rientongroup.com.

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

--- shadow/77200	2006-01-10 16:49:21.000000000 -0500
+++ shadow/77200.tmp.8488	2006-01-10 16:49:21.000000000 -0500
@@ -0,0 +1,65 @@
+Bug#: 77200
+Product: Mono: Compilers
+Version: 1.1
+OS: GNU/Linux [Other]
+OS Details: Ubuntu 5.04 "Hoary Hedgehog"
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: jonel at rientongroup.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mcs behavior on bitwise operator |
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+bitwise operator | code is not compiling properly if arguments are boolean
+
+
+Steps to reproduce the problem:
+1. code
+
+using System;
+
+namespace Test
+{
+        public class TestBit
+        {
+                public static void Main()
+                {
+                        Console.WriteLine(true | false);
+                }
+        }
+}
+
+2. build
+
+mcs bit.cs
+
+3. 
+
+Actual Results:
+bit.cs(9,22): error CS0031: Constant value `bool' cannot be converted to a
+`int'
+bit.cs(9,22): error CS0031: Constant value `bool' cannot be converted to a
+`int'
+Compilation failed: 2 error(s), 0 warnings
+
+Expected Results:
+
+success; no error
+
+
+How often does this happen? 
+all the time
+
+Additional Information:
+
+compile ok using MS csc


More information about the mono-bugs mailing list