Skip to content

Commit ce6995a

Browse files
Sync ReturnParameter
1 parent 71946df commit ce6995a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/DotNet/MethodDef.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -492,11 +492,7 @@ public CallingConvention CallingConvention {
492492
/// </summary>
493493
public TypeSig ReturnType {
494494
get => MethodSig?.RetType;
495-
set {
496-
var ms = MethodSig;
497-
if (ms is not null)
498-
ms.RetType = value;
499-
}
495+
set => parameterList.ReturnParameter.Type = value;
500496
}
501497

502498
/// <summary>

0 commit comments

Comments
 (0)