[Mono-bugs] [Bug 70472][Nor] New - Strange def assignment error with sbyte negation

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 11 Dec 2004 17:54:31 -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 bmaurer@users.sf.net.

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

--- shadow/70472	2004-12-11 17:54:31.000000000 -0500
+++ shadow/70472.tmp.20316	2004-12-11 17:54:31.000000000 -0500
@@ -0,0 +1,32 @@
+Bug#: 70472
+Product: Mono: Compilers
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: bmaurer@users.sf.net               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Strange def assignment error with sbyte negation
+
+[benm@omega benm]$ cat t.cs
+using System;
+ 
+class X {
+        static void Main ()
+        {
+                sbyte x;
+                x = -((sbyte) 1);
+                Console.WriteLine (x);
+        }
+}
+[benm@omega benm]$ mcs t.cs
+t.cs(8) error CS0165: Use of unassigned local variable `x'
+Compilation failed: 1 error(s), 0 warnings