JetBrains Rider 2026.1 Help

Code inspection: Replace with simple assignment

This inspection reports a boolean compound assignment with true that can be simplified to a plain assignment. For booleans, x |= true always makes x equal to true.

Example

isReady |= true;
isReady = true;

Quick-fix

Replace the compound assignment with a simple assignment.

29 March 2026