﻿<?xml version="1.0" encoding="utf-8"?>
<ErrorDocumentation xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ErrorName>CS0652</ErrorName>
  <Examples>
    <string>// cs0652-2.cs : Comparison to integral constant is useless; the constant is outside the range of type `byte'
// Line: 11
// 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-3.cs : Comparison to integral constant is useless; the constant is outside the range of 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-4.cs : Comparison to integral constant is useless; the constant is outside the range of 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.cs: Comparison to integral constant is useless; the constant is outside the range of type `byte'
// Line: 9
// Compiler options: -warnaserror -warn:2

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

	static void Main () {}
}
</string>
  </Examples>
</ErrorDocumentation>