summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0652.cs
blob: b555d45a01d8fa304f4b50ad596a6a958eff2279 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// CS0652: A comparison between a constant and a variable is useless. The constant is out of the range of the variable type `byte'
// Line: 9
// Compiler options: -warnaserror -warn:2

class X
{
	void b ()
	{
                byte b = 0;
                if (b == 500)
                    return;
	}

	static void Main () {}
}