1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Fixed error when type failure causes 'var' param - don't call

This commit is contained in:
Brian Fiete 2020-04-13 06:42:24 -07:00
parent 766b274426
commit 293f4f51a2

View file

@ -5276,6 +5276,11 @@ BfTypedValue BfExprEvaluator::CreateCall(BfAstNode* targetSrc, const BfTypedValu
wantType = methodInstance->GetParamType(paramIdx);
if (wantType->IsSelf())
wantType = methodInstance->GetOwner();
if (wantType->IsVar())
{
// Case happens when we can't find the argument type
failed = true;
}
BfParamKind paramKind = methodInstance->GetParamKind(paramIdx);
if (paramKind == BfParamKind_Params)