[mcs] C# 7 tuple (foundation only).
[mono.git] / mcs / errors / cs0031.cs
index c79ba6975de27edd36a9febab64fa1fe736aac27..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