1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +02:00

Fixed assignment operator RHS conversion issue

This commit is contained in:
Brian Fiete 2022-08-03 08:16:41 -07:00
parent e6352571c1
commit 052edbcb8d
2 changed files with 18 additions and 0 deletions

View file

@ -20046,6 +20046,9 @@ BfTypedValue BfExprEvaluator::PerformAssignment_CheckOp(BfAssignmentExpression*
{
if (!mModule->CanCast(rightValue, paramType))
continue;
rightValue = mModule->Cast(assignExpr->mLeft, rightValue, paramType);
BF_ASSERT(rightValue);
}
mModule->SetElementType(assignExpr->mOpToken, BfSourceElementType_Method);