We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71946df commit ce6995aCopy full SHA for ce6995a
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