[Mono-bugs] [Bug 35483][Cri] New - Compiler doesn't let you put a negate (~) on a byte.
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
11 Dec 2002 23:20:37 -0000
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 bryan@alphora.com.
http://bugzilla.ximian.com/show_bug.cgi?id=35483
--- shadow/35483 Wed Dec 11 18:20:37 2002
+++ shadow/35483.tmp.23128 Wed Dec 11 18:20:37 2002
@@ -0,0 +1,63 @@
+Bug#: 35483
+Product: Mono/MCS
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Critical
+Component: Misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: bryan@alphora.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Compiler doesn't let you put a negate (~) on a byte.
+
+Description of Problem:
+Compiler doesn't let you put a negate (~) on a byte.
+
+Actual Results:
+C:\src\Dataphor\Base>monomcs test-byte-negate.cs
+test-byte-negate.cs(8) error CS0023: Operator ~ cannot be applied to
+operand of type `byte'
+Compilation failed: 1 error(s), 0 warnings
+
+C:\src\Dataphor\Base>mcs test-byte-negate.cs
+
+You can run mcs with 'monomcs' on .NET, instead of mono, too.
+
+test-byte-negate.cs(8) error CS0023: Operator ~ cannot be applied to
+operand of type `byte'
+Compilation failed: 1 error(s), 0 warnings
+
+
+Expected Results:
+
+C:\src\Dataphor\Base>csc test-byte-negate.cs
+Microsoft (R) Visual C# .NET Compiler version 7.00.9466
+for Microsoft (R) .NET Framework version 1.0.3705
+Copyright (C) Microsoft Corporation 2001. All rights reserved.
+
+error CS5001: Program 'test-byte-negate.exe' does not have an entry point
+defined
+
+C:\src\Dataphor\Base>
+
+How often does this happen?
+
+
+Additional Information:
+
+public class Whatever
+{
+ public const byte CDuplicateMask = 0x03;
+
+ /// <remarks> Default is Ignore. </remarks>
+ public int Duplicates
+ {
+ get { return ~CDuplicateMask; }
+ }
+}