Inspectopedia
 
2024.3

Variable in destructuring declaration uses name of a wrong data class property

Warning
New
Last modified: 03 December 2024

Reports entries of destructuring declarations that match the name of a different property of the destructured data class.

Example:

The quick-fix changes variable's name to match the name of the corresponding class field: