ReSharper
 
Get ReSharper
Get your hands on the new features ahead of the release by joining the Early Access Program for ReSharper 2025.1! Learn more

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.