[Mono-bugs] [Bug 50956][Wis] New - mcs does not take uint bar = (uint) int.MaxValue + 1;

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 13 Nov 2003 18:12:17 -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=50956

--- shadow/50956	2003-11-13 18:12:16.000000000 -0500
+++ shadow/50956.tmp.4505	2003-11-13 18:12:16.000000000 -0500
@@ -0,0 +1,31 @@
+Bug#: 50956
+Product: Mono/MCS
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: bmaurer@users.sf.net               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mcs does not take uint bar = (uint) int.MaxValue + 1;
+
+class Foo {
+	static void Main () { System.Console.WriteLine (bar); }
+	static uint bar = (uint) int.MaxValue + 1;
+}
+
+Actual Results:
+[benm@Ben tmp]$ mcs t.cs
+t.cs(3) error CS0029: Cannot convert implicitly from `long' to `uint'
+Compilation failed: 1 error(s), 0 warnings
+
+
+Expected Results:
+Compiles