static object GetErrorValue(CiType type)
{
if (type == CiType.Void)
return false;
if (type == CiIntType.Value)
return -1;
if (type == CiStringPtrType.Value || type is CiClassPtrType || type is CiArrayPtrType)
return null;
throw new ResolveException("throw in a method of unsupported return type");
}