diff --git a/src/DotNet/MethodDef.cs b/src/DotNet/MethodDef.cs index 9b58f7b1..1411eb1a 100644 --- a/src/DotNet/MethodDef.cs +++ b/src/DotNet/MethodDef.cs @@ -492,11 +492,7 @@ public CallingConvention CallingConvention { /// public TypeSig ReturnType { get => MethodSig?.RetType; - set { - var ms = MethodSig; - if (ms is not null) - ms.RetType = value; - } + set => parameterList.ReturnParameter.Type = value; } ///