Skip to content

Commit

Permalink
Fix runtime assertion failure due to wrong GC mode
Browse files Browse the repository at this point in the history
  • Loading branch information
trylek committed Jul 10, 2022
1 parent fd772ab commit 2f7a546
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coreclr/vm/methodtable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8042,7 +8042,7 @@ MethodTable::ResolveVirtualStaticMethod(

if (allowVariantMatches)
{
equivalentOrVariantCompatible = pItfInMap->CanCastTo(pInterfaceType, NULL);
equivalentOrVariantCompatible = pItfInMap->CanCastToInterface(pInterfaceType, NULL);
}
else
{
Expand Down

0 comments on commit 2f7a546

Please sign in to comment.