From a2ece5d379bf3b13e4415696158e46488713b669 Mon Sep 17 00:00:00 2001 From: Christoph Wille Date: Fri, 26 Jun 2026 12:26:25 +0200 Subject: [PATCH] Cover dynamic bitwise, shift, and modulo compound assignments The pretty DynamicTests only exercised += -= *= /= on a dynamic target, leaving %= &= |= ^= <<= >>= unverified even though VisitDynamicCompoundAssign and GetAssignmentOperatorTypeFromExpressionType already map them. Add them so the full set of dynamic compound-assignment operators is pinned by a round-trip test. Assisted-by: Claude:claude-opus-4-8:Claude Code --- .../TestCases/Pretty/DynamicTests.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/DynamicTests.cs b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/DynamicTests.cs index 7811ffe01..a9ebf2c74 100644 --- a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/DynamicTests.cs +++ b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/DynamicTests.cs @@ -369,6 +369,12 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty a.Setter2 -= b; a.Setter2 *= b; a.Setter2 /= b; + a.Setter2 %= b; + a.Setter2 &= b; + a.Setter2 |= b; + a.Setter2 ^= b; + a.Setter2 <<= b; + a.Setter2 >>= b; field.Setter += 5; field.Setter -= 5; }