Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Detect generic recursion in generic lookups
  • Loading branch information
MichalStrehovsky committed Nov 3, 2021
commit ed8244d906ce0d1991bf6e05e2775b3a37f7780c
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,11 @@ public ISymbolNode ComputeConstantLookup(ReadyToRunHelperId lookupKind, object t

public GenericDictionaryLookup ComputeGenericLookup(MethodDesc contextMethod, ReadyToRunHelperId lookupKind, object targetOfLookup)
{
if (targetOfLookup is TypeSystemEntity typeSystemEntity)
{
_nodeFactory.TypeSystemContext.DetectGenericCycles(contextMethod, typeSystemEntity);
}

GenericContextSource contextSource;

if (contextMethod.RequiresInstMethodDescArg())
Expand Down