2007-01-11 Jonathan Pobst <jpobst@novell.com>
[mono.git] / mcs / errors / cs0031.cs
index c79ba6975de27edd36a9febab64fa1fe736aac27..1200f3f68baf5f6f56fa11604ef24f802ba3bf34 100644 (file)
@@ -1,14 +1,12 @@
-// cs0031.cs : Constant value '256' cannot be converted to a byte
-// Line : 7
-
-public class Blah {
-
-       public enum MyEnum : byte {
-               Foo = 256,
-               Bar
-       }
-
-       public static void Main ()
-       {
-       }
-}
+// cs0031.cs: Constant value `1022' cannot be converted to a `byte'\r
+// Line: 9\r
+\r
+public class Test\r
+{\r
+       public static void Main()\r
+       {\r
+               unchecked {\r
+                       byte b = 1024 - 2;\r
+               }\r
+       }\r
+}
\ No newline at end of file