Inspectopedia
 
2024.3

Constructor can never be complete

Warning
New
Last modified: 03 December 2024

Reports constructors with a non-null self-reference parameter.

Such constructors never instantiate a class.

The quick-fix converts the parameter type to nullable.

Example:

After the quick-fix is applied: