[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / errors / cs0031.cs
index 8eadba4ca3d84f540f4f5b0b8dfd47f7b09ec34b..f62ab0ab7451771473fc98a794793b16f65fbde0 100644 (file)
@@ -1,14 +1,12 @@
-// cs0031.cs: Constant value `256' cannot be converted to a `byte'
-// Line : 7
+// CS0031: Constant value `1022' cannot be converted to a `byte'
+// Line: 9
 
-public class Blah {
-
-       public enum MyEnum : byte {
-               Foo = 256,
-               Bar
-       }
-
-       public static void Main ()
+public class Test
+{
+       public static void Main()
        {
+               unchecked {
+                       byte b = 1024 - 2;
+               }
        }
-}
+}
\ No newline at end of file