All issues
Anti-pattern
Bug risk
Coverage
Documentation
Performance
Secrets
Security
Style
Type check
Self-assignments are redundant and are unlikely to be intentional. This is probably the result of a copy-paste.
Consider revisiting the code, self-assignments are silent bugs.
a.x = b.x; a.y = a.y; // self-assignment
a.x = b.x; a.y = b.y;