We should return a null TypeHandle to indicate failure so that we don't attempt to add generic types/methods
that have cross module references. (i.e. MyList<System.Guid> )
Commit migrated from https://github.com/dotnet/coreclr/commit/
e13760cf8f64a4070ecbe4390a9d3b3170fe5de8
PREFIX_ASSUME(pZapSigContext != NULL);
pModule = pZapSigContext->GetZapSigModule()->GetModuleFromIndex(ix);
- if (pModule != NULL)
+
+ // For ReadyToRunCompilation we return a null TypeHandle when we reference a non-local module
+ //
+ if ((pModule != NULL) && pModule->IsInCurrentVersionBubble())
{
thRet = psig.GetTypeHandleThrowing(pModule,
pTypeContext,