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

Fixed errors in sized array constructor

This commit is contained in:
disarray2077 2023-05-01 14:26:43 -03:00 committed by GitHub
parent d3ca45d80a
commit 2a1bfbfa3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18840,10 +18840,7 @@ void BfExprEvaluator::Visit(BfInvocationExpression* invocationExpr)
checkTarget = indexerExpr->mTarget;
}
SetAndRestoreValue<bool> prevIgnoreError(mModule->mIgnoreErrors, true);
auto resolvedType = mModule->ResolveTypeRef(checkTarget, NULL, BfPopulateType_Identity);
prevIgnoreError.Restore();
auto resolvedType = mModule->ResolveTypeRef(checkTarget, NULL, BfPopulateType_Identity, BfResolveTypeRefFlag_IgnoreLookupError);
if (resolvedType != NULL)
{
BfType* curType = resolvedType;
@ -25185,4 +25182,4 @@ void BfExprEvaluator::Visit(BfBinaryOperatorExpression* binOpExpr)
}
PerformBinaryOperation(binOpExpr->mLeft, binOpExpr->mRight, binOpExpr->mOp, binOpExpr->mOpToken, BfBinOpFlag_None);
}
}