Skip to content

Commit

Permalink
Correct MethodReference ImportToSourceAsm(MethodReference originalMet…
Browse files Browse the repository at this point in the history
…hodRef)
  • Loading branch information
Serg046 committed Dec 16, 2022
1 parent cb1a1b3 commit ce8cc56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AutoFake/TypeInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public MethodReference ImportToSourceAsm(MethodReference originalMethodRef)
var newGenericInstanceMethod = _cecilFactory.CreateGenericInstanceMethod(newMethodRef);
foreach (var arg in genericInstanceMethod.GenericArguments)
{
newGenericInstanceMethod.GenericArguments.Add(arg);
newGenericInstanceMethod.GenericArguments.Add(IsInFakeModule(arg) ? ImportToSourceAsm(arg) : arg);
}

return newGenericInstanceMethod;
Expand Down

0 comments on commit ce8cc56

Please sign in to comment.