mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Fixed static search issue with extensions
This commit is contained in:
parent
a99a23f79a
commit
d31dc16621
1 changed files with 2 additions and 1 deletions
|
@ -2204,6 +2204,7 @@ void BfModule::DoPopulateType(BfType* resolvedTypeRef, BfPopulateType populateTy
|
|||
BfStaticSearch* staticSearch;
|
||||
if (typeInstance->mStaticSearchMap.TryAdd(typeDef, NULL, &staticSearch))
|
||||
{
|
||||
SetAndRestoreValue<BfTypeDef*> prevTypeDef(mContext->mCurTypeState->mCurTypeDef, typeDef);
|
||||
for (auto typeRef : typeDef->mStaticSearch)
|
||||
{
|
||||
auto staticType = ResolveTypeRef(typeRef, NULL, BfPopulateType_Identity);
|
||||
|
@ -8470,7 +8471,7 @@ BfType* BfModule::ResolveTypeRef(BfTypeReference* typeRef, BfPopulateType popula
|
|||
{
|
||||
mIgnoreErrors = prevIgnoreErrors.mPrevVal;
|
||||
BfTypeReference* errorRefNode = qualifiedTypeRef->mLeft;
|
||||
if ((leftIsValid) && (mCurTypeInstance != NULL) && (mSystem->ContainsNamespace(leftComposite, mCurTypeInstance->mTypeDef->mProject)))
|
||||
if ((leftIsValid) && (mCurTypeInstance != NULL) && (mSystem->ContainsNamespace(leftComposite, curTypeDef->mProject)))
|
||||
{
|
||||
// The left was a namespace name, so throw an error on the whole string
|
||||
errorRefNode = qualifiedTypeRef;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue