mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Fixed genericParam->genericParam cast check, IgnoreError constraint fail
This commit is contained in:
parent
970ac9add2
commit
1519a60104
4 changed files with 156 additions and 113 deletions
|
@ -8685,8 +8685,19 @@ BfTypedValue BfExprEvaluator::MatchMethod(BfAstNode* targetSrc, BfMethodBoundExp
|
|||
|
||||
BfType* overrideReturnType = NULL;
|
||||
BfModuleMethodInstance moduleMethodInstance = GetSelectedMethod(targetSrc, curTypeInst, methodDef, methodMatcher, &overrideReturnType);
|
||||
if ((moduleMethodInstance.mMethodInstance != NULL) && (!mModule->CheckUseMethodInstance(moduleMethodInstance.mMethodInstance, targetSrc)))
|
||||
|
||||
if ((mModule->mAttributeState != NULL) && ((mModule->mAttributeState->mFlags & (BfAttributeState::Flag_StopOnError | BfAttributeState::Flag_HadError)) ==
|
||||
(BfAttributeState::Flag_StopOnError | BfAttributeState::Flag_HadError)))
|
||||
{
|
||||
FinishDeferredEvals(argValues);
|
||||
return BfTypedValue();
|
||||
}
|
||||
|
||||
if ((moduleMethodInstance.mMethodInstance != NULL) && (!mModule->CheckUseMethodInstance(moduleMethodInstance.mMethodInstance, targetSrc)))
|
||||
{
|
||||
FinishDeferredEvals(argValues);
|
||||
return BfTypedValue();
|
||||
}
|
||||
|
||||
if ((mModule->mCurMethodInstance != NULL) && (mModule->mCurMethodInstance->mIsUnspecialized))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue