JetBrains Rider
 
2024.3
Get JetBrains Rider

Code inspection: Possible cyclic constructor call

Last modified: 11 February 2024

Given the following (rather synthetic) code snippet

calling any of the constructors will cause an eventual stack overflow as constructors call each other perpetually.