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