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:
parent
e6352571c1
commit
052edbcb8d
2 changed files with 18 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue