Files
mono/mcs/errors/cs0031-6.cs
T
Marek Safar d76232fa59 2006-03-26 Marek Safar <[email protected]>
* constant.cs (Constant.Reduce): Replaced EmitContext with single bool
	for easier reuse. Updated all overrides.
	(IntegralConstant): New base class for all integral constants.
	(IntegralConstant.Error_ValueCannotBeConverted): When assigned value if out
	of the constant range, report custom error.
	(UIntConstant.Reduce): Fixed uint conversion.

	* ecore.cs, literal.cs: Reduce updates.

svn path=/trunk/mcs/; revision=58552
2006-03-26 19:44:12 +00:00

13 lines
176 B
C#

// 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;
}
}