2009-06-05 Jb Evain <jbevain@novell.com>
[mcs.git] / errors / cs0652-2.cs
blobbe9d3757677dd458143521f99888c33be5e77123
1 // CS0652: A comparison between a constant and a variable is useless. The constant is out of the range of the variable type `byte'
2 // Line: 12
3 // Compiler options: /warn:2 /warnaserror
5 using System;
7 public class CS0652 {
9 public static void Main ()
11 byte b = 0;
12 if (b == -1)
13 Console.WriteLine (":(");
14 else
15 Console.WriteLine (":)");