mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-21 07:39:30 -10:00
* 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
13 lines
176 B
C#
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;
|
|
}
|
|
}
|
|
|