mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +02:00
Fixed error when type failure causes 'var' param - don't call
This commit is contained in:
parent
766b274426
commit
293f4f51a2
1 changed files with 5 additions and 0 deletions
|
@ -5276,6 +5276,11 @@ BfTypedValue BfExprEvaluator::CreateCall(BfAstNode* targetSrc, const BfTypedValu
|
||||||
wantType = methodInstance->GetParamType(paramIdx);
|
wantType = methodInstance->GetParamType(paramIdx);
|
||||||
if (wantType->IsSelf())
|
if (wantType->IsSelf())
|
||||||
wantType = methodInstance->GetOwner();
|
wantType = methodInstance->GetOwner();
|
||||||
|
if (wantType->IsVar())
|
||||||
|
{
|
||||||
|
// Case happens when we can't find the argument type
|
||||||
|
failed = true;
|
||||||
|
}
|
||||||
BfParamKind paramKind = methodInstance->GetParamKind(paramIdx);
|
BfParamKind paramKind = methodInstance->GetParamKind(paramIdx);
|
||||||
|
|
||||||
if (paramKind == BfParamKind_Params)
|
if (paramKind == BfParamKind_Params)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue