<?xml version="1.0"?>
<ErrorDocumentation xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ErrorName>CS0652</ErrorName>
  <Examples>
    <string>// CS0652: A comparison between a constant and a variable is useless. The constant is out of the range of the variable type `short'
// Line: 12
// Compiler options: /warn:2 /warnaserror

using System;

public class CS0652 {

	public static void Main () 
	{
		short value = 5;
		if (value &gt; char.MaxValue)
			return;
	}
}

</string>
    <string>// CS0652: A comparison between a constant and a variable is useless. The constant is out of the range of the variable type `short'
// Line: 11
// Compiler options: /warn:2 /warnaserror
using System;

public class CS0652 {

	public static void Main () 
	{
		short us = 0;
		if (us == -10000000)
			Console.WriteLine (":(");
		else
			Console.WriteLine (":)");
	}
}

</string>
    <string>// CS0652: A comparison between a constant and a variable is useless. The constant is out of the range of the variable type `char'
// Line: 12
// Compiler options: /warn:2 /warnaserror

using System;

public class CS0652 {

	public static void Main () 
	{
		char value = 'a';
		if (value &gt; ulong.MaxValue)
			return;
	}
}

</string>
    <string>// CS0652: A comparison between a constant and a variable is useless. The constant is out of the range of the variable type `byte'
// Line: 12
// Compiler options: /warn:2 /warnaserror

using System;

public class CS0652 {

	public static void Main () 
	{
		byte b = 0;
		if (b == -1)
			Console.WriteLine (":(");
		else
			Console.WriteLine (":)");
	}
}

</string>
    <string>// 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 () {}
}
</string>
    <string>// CS0652: A comparison between a constant and a variable is useless. The constant is out of the range of the variable type `ushort'
// Line: 11
// Compiler options: /warn:2 /warnaserror
using System;

public class CS0652 {

	public static void Main () 
	{
		ushort us = 0;
		if (us == -1)
			Console.WriteLine (":(");
		else
			Console.WriteLine (":)");
	}
}

</string>
    <string>// CS0652: A comparison between a constant and a variable is useless. The constant is out of the range of the variable type `char'
// Line: 12
// Compiler options: /warn:2 /warnaserror

using System;

public class CS0652 {

	public static void Main () 
	{
		char value = 'a';
		if (value &lt; SByte.MinValue)
			return;
	}
}

</string>
  </Examples>
</ErrorDocumentation>