2009-09-02 Jb Evain <jbevain@novell.com>
[mcs.git] / errors / cs0652-3.cs
blob18c093ec1cf201d36d57f2324f5c2921f88fbdcb
1 // CS0652: A comparison between a constant and a variable is useless. The constant is out of the range of the variable type `ushort'
2 // Line: 11
3 // Compiler options: /warn:2 /warnaserror
4 using System;
6 public class CS0652 {
8 public static void Main ()
10 ushort us = 0;
11 if (us == -1)
12 Console.WriteLine (":(");
13 else
14 Console.WriteLine (":)");