From f860777206557b348197bfa37aa49cb2d5b22082 Mon Sep 17 00:00:00 2001 From: ds5678 <49847914+ds5678@users.noreply.github.com> Date: Fri, 1 Aug 2025 02:27:23 -0700 Subject: [PATCH] Add preprocessor directive --- .../TestCases/Pretty/CompoundAssignmentTest.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/CompoundAssignmentTest.cs b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/CompoundAssignmentTest.cs index 34f940d86..040474bcd 100644 --- a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/CompoundAssignmentTest.cs +++ b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/CompoundAssignmentTest.cs @@ -4947,18 +4947,20 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty customStruct.IntProp += value; } - public static string PreincrementWithMethodCall(int value) +#if ROSLYN2 + public static string PreIncrementWithMethodCall(int value) { return (++value).ToString(); } +#endif #if CS72 - public static string PreincrementWithInParameter(int value) + public static string PreIncrementWithInParameter(int value) { - PreincrementWithInParameter_Helper(++value); + PreIncrementWithInParameter_Helper(++value); return value.ToString(); } - public static void PreincrementWithInParameter_Helper(in int value) + public static void PreIncrementWithInParameter_Helper(in int value) { } #endif