Inspectopedia
 
2024.3

Assignment can be joined with declaration

Info
New
Last modified: 03 December 2024

Reports variable assignments that can be joined with a variable declaration.

Example:

The quick-fix converts the assignment into an initializer:

New in 2018.3