Possibly lossy implicit cast in compound assignment

Last modified: 03 December 2024

Reports compound assignments if the type of the right-hand operand is not assignment compatible with the type of the variable.

During such compound assignments, an implicit cast occurs, potentially resulting in lossy conversions.

Example:

After the quick-fix is applied:

New in 2023.2