Skip to content

Commit

Permalink
Sync ReturnParameter
Browse files Browse the repository at this point in the history
  • Loading branch information
CreateAndInject committed Mar 3, 2024
1 parent 71946df commit ce6995a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/DotNet/MethodDef.cs
Original file line number Diff line number Diff line change
Expand Up @@ -492,11 +492,7 @@ public CallingConvention CallingConvention {
/// </summary>
public TypeSig ReturnType {
get => MethodSig?.RetType;
set {
var ms = MethodSig;
if (ms is not null)
ms.RetType = value;
}
set => parameterList.ReturnParameter.Type = value;
}

/// <summary>
Expand Down

0 comments on commit ce6995a

Please sign in to comment.