Browse Source

Apply suggestions from code review

Co-authored-by: Siegfried Pammer <siegfried@pammer.io>
pull/3470/head
Jeremy Pritts 2 months ago
parent
commit
c85b53d99c
  1. 2
      ICSharpCode.Decompiler.Tests/TestCases/Pretty/OptionalArguments.cs

2
ICSharpCode.Decompiler.Tests/TestCases/Pretty/OptionalArguments.cs

@ -314,8 +314,10 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty
#if CS120 #if CS120
public static Action<int, DateTime> Issue3469b() public static Action<int, DateTime> Issue3469b()
{ {
#pragma warning disable CS9099 // Parameter 1 has default value 'default(int)' in lambda but '<missing>' in the target delegate type
return ([Optional][DefaultParameterValue(0)] int i, [Optional] DateTime d) => { return ([Optional][DefaultParameterValue(0)] int i, [Optional] DateTime d) => {
}; };
#pragma warning restore CS9099
} }
public static D LambdaWithOptionalParameter() public static D LambdaWithOptionalParameter()
{ {

Loading…
Cancel
Save