Skip to content
Merged
Changes from all commits
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
4 changes: 2 additions & 2 deletions src/coreclr/vm/methodtablebuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3035,8 +3035,8 @@ MethodTableBuilder::EnumerateClassMethods()

// Check the appearance of covariant and contravariant in the method signature
// Note that variance is only supported for interfaces, and these rules are not
// checked for static methods as they cannot be called variantly.
if ((bmtGenerics->pVarianceInfo != NULL) && !IsMdStatic(dwMemberAttrs))
// checked for non-virtual static methods as they cannot be called variantly.
if ((bmtGenerics->pVarianceInfo != NULL) && (IsMdVirtual(dwMemberAttrs) || !IsMdStatic(dwMemberAttrs)))
{
SigPointer sp(pMemberSignature, cMemberSignature);
uint32_t callConv;
Expand Down