<?xml version="1.0"?>
<ErrorDocumentation xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ErrorName>CS0031</ErrorName>
  <Examples>
    <string>// CS0031: Constant value `1022' cannot be converted to a `byte'
// Line: 9

public class Test
{
	public static void Main()
	{
		unchecked {
			byte b = 1024 - 2;
		}
	}
}</string>
    <string>// CS0031: Constant value `200000000000' cannot be converted to a `int'
// Line: 7
// Compiler options: -unsafe

public unsafe struct C
{
    private fixed long test_1 [200000000000];
}

</string>
    <string>// CS0031: Constant value `1.42' cannot be converted to a `int'
// Line: 6

class X
{
	const int val = 1.42f;
}</string>
    <string>// CS0031: Constant value `-9' cannot be converted to a `uint'
// Line: 9

public class Test
{
	public static void Main()
	{
		uint b = -9;
	}
}</string>
    <string>// CS0031: Constant value `-97' cannot be converted to a `uint'
// Line: 9

public class Test
{
	const uint b = -'a';
}</string>
    <string>// CS0031: Constant value `256' cannot be converted to a `byte'
// Line : 7

public class Blah {

	public enum MyEnum : byte {
		Foo = 256,
		Bar
	}

	public static void Main ()
	{
	}
}
</string>
    <string>// CS0031: Constant value `-1' cannot be converted to a `byte'
// Line: 9

public class Test
{
	public static void Main()
	{
		byte b = -1;
	}
}</string>
    <string>// CS0031: Constant value `999999999999999' cannot be converted to a `int'
// Line: 9

class X
{
	public static void Main ()
	{
		int i = 3;
		i += 999999999999999;
	}
}

</string>
    <string>// CS0031: Constant value `1000M' cannot be converted to a `byte'
// Line: 8

class C
{
	public static void Main ()
	{
		const byte c = unchecked ((byte) 1000M);
	}
}

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