Skip to content

Commit

Permalink
Undo removing baseMethod IsVirtual check
Browse files Browse the repository at this point in the history
  • Loading branch information
puff committed Mar 22, 2024
1 parent 9a4335b commit f001fd4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public class CallVirtHandler : CallHandlerBase

private static MethodDefinition? FindMethodImplementationInType(TypeDefinition? type, MethodDefinition? baseMethod)
{
if (type is null || baseMethod is null)
if (type is null || baseMethod is null || !baseMethod.IsVirtual)
return baseMethod;

var implementation = default(MethodDefinition);
Expand Down

0 comments on commit f001fd4

Please sign in to comment.