From 1639542fed9f0d46e8c7b2dcf818eef8dcdb512b Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Wed, 15 Jun 2022 17:53:35 -0700 Subject: [PATCH] Fixed global lookup --- IDEHelper/Compiler/BfCompiler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/IDEHelper/Compiler/BfCompiler.cpp b/IDEHelper/Compiler/BfCompiler.cpp index 87c26499..3d9937d9 100644 --- a/IDEHelper/Compiler/BfCompiler.cpp +++ b/IDEHelper/Compiler/BfCompiler.cpp @@ -9364,7 +9364,8 @@ BfType* BfCompiler::GetType(const StringImpl& fullTypeName) SetAndRestoreValue prevIgnoreWarnings(mContext->mScratchModule->mIgnoreWarnings, true); SetAndRestoreValue prevResolvePass(mResolvePassData, &resolvePass); - auto type = mContext->mScratchModule->ResolveTypeRef(typeRef, BfPopulateType_Identity, (BfResolveTypeRefFlags)(BfResolveTypeRefFlag_NoCreate | BfResolveTypeRefFlag_AllowUnboundGeneric)); + auto type = mContext->mScratchModule->ResolveTypeRef(typeRef, BfPopulateType_Identity, (BfResolveTypeRefFlags)( + BfResolveTypeRefFlag_NoCreate | BfResolveTypeRefFlag_AllowUnboundGeneric | BfResolveTypeRefFlag_AllowGlobalContainer)); if (type != NULL) return type;