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

Fix for deferred evals in function-style cast

This commit is contained in:
Brian Fiete 2020-05-18 09:35:50 -07:00
parent 8334ed2ad4
commit dd1c1ed562

View file

@ -6837,6 +6837,8 @@ BfTypedValue BfExprEvaluator::MatchMethod(BfAstNode* targetSrc, BfMethodBoundExp
if ((refType != NULL) && (refType->IsPrimitiveType()))
{
FinishDeferredEvals(argValues.mResolvedArgs);
if (argValues.mResolvedArgs.size() != 1)
{
mModule->Fail("Cast requires one parameter", targetSrc);