We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 71946df + ce6995a commit 0b2dc95Copy full SHA for 0b2dc95
1 file changed
src/DotNet/MethodDef.cs
@@ -492,11 +492,7 @@ public CallingConvention CallingConvention {
492
/// </summary>
493
public TypeSig ReturnType {
494
get => MethodSig?.RetType;
495
- set {
496
- var ms = MethodSig;
497
- if (ms is not null)
498
- ms.RetType = value;
499
- }
+ set => parameterList.ReturnParameter.Type = value;
500
}
501
502
/// <summary>
0 commit comments