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 [EMAIL PROTECTED]

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

--- shadow/75319        2005-06-19 13:39:10.000000000 -0400
+++ shadow/75319.tmp.7562       2005-06-19 13:39:10.000000000 -0400
@@ -0,0 +1,41 @@
+Bug#: 75319
+Product: Mono: Compilers
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: [EMAIL PROTECTED]                            
+ReportedBy: [EMAIL PROTECTED]               
+QAContact: [EMAIL PROTECTED]
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: missing CS0023 check (not applicable operator unary plus)
+
+With the code below, unary + operator should check the type of the operand
+and raise CS0023 error.
+
+class X {
+        static void Main () {
+                bool b = +true;
+        }
+}
+
+
+Actual Results:
+compiles without warning.
+
+Expected Results:
+$ csc unary-plus.cs -nologo
+unary-plus.cs(3,12): error CS0023: Operator '+' cannot be applied to
+operand of type 'bool'
+
+How often does this happen? 
+consistently.
+
+Additional Information:
+unary minus operator does expected check.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to