[Mono-bugs] [Bug 51336][Wis] New - error CS0031: Constant value '-1' cannot be converted to a 'byte'

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 24 Nov 2003 03:30:05 -0500 (EST)


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 piersh@friskit.com.

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

--- shadow/51336	2003-11-24 03:30:05.000000000 -0500
+++ shadow/51336.tmp.5850	2003-11-24 03:30:05.000000000 -0500
@@ -0,0 +1,25 @@
+Bug#: 51336
+Product: Mono/MCS
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: piersh@friskit.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: error CS0031: Constant value '-1' cannot be converted to a 'byte'
+
+The following file compiles without errors on mcs, but produces the error 
+above (CS0031) under csc (1.1):
+
+class Foo
+{
+    byte b = -1;
+}