Inspectopedia
 
2024.3

'lateinit var' property overrides 'lateinit var' property

Warning
New
Last modified: 03 December 2024

Reports lateinit var properties that override other lateinit var properties.

A subclass instance will have two fields for a single property, and the one from the superclass will remain effectively unused.

Example: