Skip to content

Commit 20d93e2

Browse files
committed
Add preprocessor directive
1 parent c6f7363 commit 20d93e2

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

ICSharpCode.Decompiler.Tests/TestCases/Pretty/CompoundAssignmentTest.cs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4947,18 +4947,20 @@ public void Issue1779(int value)
49474947
customStruct.IntProp += value;
49484948
}
49494949

4950-
public static string PreincrementWithMethodCall(int value)
4950+
#if ROSLYN2
4951+
public static string PreIncrementWithMethodCall(int value)
49514952
{
49524953
return (++value).ToString();
49534954
}
4955+
#endif
49544956

49554957
#if CS72
4956-
public static string PreincrementWithInParameter(int value)
4958+
public static string PreIncrementWithInParameter(int value)
49574959
{
4958-
PreincrementWithInParameter_Helper(++value);
4960+
PreIncrementWithInParameter_Helper(++value);
49594961
return value.ToString();
49604962
}
4961-
public static void PreincrementWithInParameter_Helper(in int value)
4963+
public static void PreIncrementWithInParameter_Helper(in int value)
49624964
{
49634965
}
49644966
#endif

0 commit comments

Comments
 (0)