mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +02:00
Fixed error message NULL issue
This commit is contained in:
parent
632c8a4cc5
commit
e4510fdb3a
1 changed files with 3 additions and 2 deletions
|
@ -9884,11 +9884,12 @@ void BfExprEvaluator::LookupQualifiedStaticField(BfQualifiedNameNode* nameNode,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
mResult = LookupField(nameNode->mRight, mResult, fieldName);
|
auto leftResult = mResult;
|
||||||
|
mResult = LookupField(nameNode->mRight, leftResult, fieldName);
|
||||||
if ((mResult) || (mPropDef != NULL))
|
if ((mResult) || (mPropDef != NULL))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
mModule->Fail(StrFormat("Unable to find member '%s' in '%s'", fieldName.c_str(), mModule->TypeToString(mResult.mType).c_str()), nameNode->mRight);
|
mModule->Fail(StrFormat("Unable to find member '%s' in '%s'", fieldName.c_str(), mModule->TypeToString(leftResult.mType).c_str()), nameNode->mRight);
|
||||||
}
|
}
|
||||||
|
|
||||||
void BfExprEvaluator::LookupQualifiedStaticField(BfAstNode* nameNode, BfIdentifierNode* nameLeft, BfIdentifierNode* nameRight, bool ignoreIdentifierNotFoundError)
|
void BfExprEvaluator::LookupQualifiedStaticField(BfAstNode* nameNode, BfIdentifierNode* nameLeft, BfIdentifierNode* nameRight, bool ignoreIdentifierNotFoundError)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue