[mcs] Allow properties and indexers of by-ref values to be set without setter
[mono.git] / mcs / errors / cs0652-2.cs
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
4
5 using System;
6
7 public class CS0652 {
8
9         public static void Main () 
10         {
11                 byte b = 0;
12                 if (b == -1)
13                         Console.WriteLine (":(");
14                 else
15                         Console.WriteLine (":)");
16         }
17 }
18