private bool CheckRetType() { if (lambdaInfo.ActionExp.RetType == null) { throw new CCException(); } else if (ZTypeUtil.IsConditionFn(lambdaInfo.FnRetType)) { if (!ZTypeUtil.IsBool(lambdaInfo.ActionExp.RetType)) { Errorf(lambdaInfo.ActionExp.Position, "结果应该是" + lambdaInfo.FnRetType.ZTypeName); return(false); } } else if (ZTypeUtil.IsAction(lambdaInfo.FnRetType)) { return(true); } return(true); }