Inspectopedia
 
2024.3

Use of possibly unassigned property in a static initializer

Warning
Reliability
New
Last modified: 03 December 2024

Reports a class member initializer which references another non-hoisted class member while the latter may be not initialized yet.

Initialization of class members happens consequently for fields, so a field cannot reference another field that is declared later.