2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git] / errors / cs0652.cs
blobb555d45a01d8fa304f4b50ad596a6a958eff2279
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: 9
3 // Compiler options: -warnaserror -warn:2
5 class X
7 void b ()
9 byte b = 0;
10 if (b == 500)
11 return;
14 static void Main () {}