mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Fixed missing mut error on skipcall
This commit is contained in:
parent
cb877b1860
commit
9afa24e5d7
1 changed files with 12 additions and 0 deletions
|
@ -8861,7 +8861,19 @@ BfTypedValue BfExprEvaluator::MatchMethod(BfAstNode* targetSrc, BfMethodBoundExp
|
|||
{
|
||||
// Just a fake value so we can continue on without generating any code (boxing, conversion, etc)
|
||||
if (target)
|
||||
{
|
||||
if (((target.mType->IsComposite()) || (target.mType->IsTypedPrimitive())))
|
||||
{
|
||||
if ((moduleMethodInstance.mMethodInstance->mMethodDef->mIsMutating) &&
|
||||
((target.IsReadOnly()) || (!target.IsAddr())))
|
||||
{
|
||||
String err = StrFormat("call mutating method '%s' on", mModule->MethodToString(moduleMethodInstance.mMethodInstance).c_str());
|
||||
CheckModifyResult(target, targetSrc, err.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
callTarget = BfTypedValue(mModule->mBfIRBuilder->GetFakeVal(), targetTypeInst);
|
||||
}
|
||||
}
|
||||
else if (targetTypeInst == callTargetType)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue