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

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

public class Test
{
	public static void Main()
	{
		uint b = -9;
	}
}</string>
    <string>// cs0031-4.cs: 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-5.cs: 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-6.cs: 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 `42' cannot be converted to a `string'
// Line: 5

class A {
  public static implicit operator string (A a) { return 42; }
}
</string>
    <string>// cs0031: Constant value `-97' cannot be converted to a `uint'
// Line: 9

public class Test
{
	const uint b = -'a';
}</string>
    <string>// cs0031.cs: Constant value `1022' cannot be converted to a `byte'
// Line: 9

public class Test
{
	public static void Main()
	{
		unchecked {
			byte b = 1024 - 2;
		}
	}
}</string>
  </Examples>
</ErrorDocumentation>