mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +02:00
Fixed append field assignment error text
This commit is contained in:
parent
7182e167a8
commit
fb088935d3
1 changed files with 6 additions and 0 deletions
|
@ -20408,6 +20408,12 @@ bool BfExprEvaluator::CheckModifyResult(BfTypedValue& typedVal, BfAstNode* refNo
|
||||||
mModule->TypeToString(mResultFieldInstance->mOwner).c_str(), mResultFieldInstance->GetFieldDef()->mName.c_str(),
|
mModule->TypeToString(mResultFieldInstance->mOwner).c_str(), mResultFieldInstance->GetFieldDef()->mName.c_str(),
|
||||||
mModule->MethodToString(mModule->mCurMethodInstance).c_str()), refNode);
|
mModule->MethodToString(mModule->mCurMethodInstance).c_str()), refNode);
|
||||||
}
|
}
|
||||||
|
else if (mResultFieldInstance->GetFieldDef()->mIsAppend)
|
||||||
|
{
|
||||||
|
error = _Fail(StrFormat("Cannot %s append field '%s.%s' within method '%s'", modifyType,
|
||||||
|
mModule->TypeToString(mResultFieldInstance->mOwner).c_str(), mResultFieldInstance->GetFieldDef()->mName.c_str(),
|
||||||
|
mModule->MethodToString(mModule->mCurMethodInstance).c_str()), refNode);
|
||||||
|
}
|
||||||
else if (auto propertyDeclaration = BfNodeDynCast<BfPropertyDeclaration>(mResultFieldInstance->GetFieldDef()->mFieldDeclaration))
|
else if (auto propertyDeclaration = BfNodeDynCast<BfPropertyDeclaration>(mResultFieldInstance->GetFieldDef()->mFieldDeclaration))
|
||||||
{
|
{
|
||||||
String propNam;
|
String propNam;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue