public override Constant ConvertImplicitly (TypeSpec type)
{
//
// The 0 literal can be converted to an enum value
//
if (Value == 0 && type.IsEnum) {
Constant c = ConvertImplicitly (EnumSpec.GetUnderlyingType (type));
if (c == null)
return null;
return new EnumConstant (c, type);
}
return base.ConvertImplicitly (type);
}