Bläddra i källkod

Fixed global lookup

Brian Fiete 3 år sedan
förälder
incheckning
1639542fed
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. 2 1
      IDEHelper/Compiler/BfCompiler.cpp

+ 2 - 1
IDEHelper/Compiler/BfCompiler.cpp

@@ -9364,7 +9364,8 @@ BfType* BfCompiler::GetType(const StringImpl& fullTypeName)
 	SetAndRestoreValue<bool> prevIgnoreWarnings(mContext->mScratchModule->mIgnoreWarnings, true);
 	SetAndRestoreValue<BfResolvePassData*> 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;