[Mono-bugs] [Bug 38725][Nor] Changed - unchecked operator being ignored v0.20

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Tue, 25 Feb 2003 20:03:43 -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 bryan@alphora.com.

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

--- shadow/38725	Tue Feb 25 19:52:31 2003
+++ shadow/38725.tmp.436	Tue Feb 25 20:03:43 2003
@@ -1,14 +1,14 @@
 Bug#: 38725
 Product: Mono/MCS
 Version: unspecified
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Normal
 Component: Misc
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: bryan@alphora.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
@@ -36,6 +36,20 @@
 test-unchecked.cs(11) error CS0221: Constant value `-9' cannot be 
 converted to a `byte' (use `unchecked' syntax to over
 ride)
 
 Looks like unchecked is either unimplemented or not handling this case 
 correctly.  Compiles fine in CSC.
+
+------- Additional Comments From bryan@alphora.com  2003-02-25 20:03 -------
+Here is an even simpler test.
+
+class TestUnchecked
+{
+	public void Test()
+	{
+		unchecked
+		{
+			byte FFlags = (byte)-9;
+		}
+	}
+}