Skip to content

Commit

Permalink
Merge pull request 0xd4d#549 from CreateAndInject/SyncReturnParameter
Browse files Browse the repository at this point in the history
Sync ReturnParameter
  • Loading branch information
wtfsck authored Mar 4, 2024
2 parents 71946df + ce6995a commit 0b2dc95
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 0b2dc95

Please sign in to comment.