ReSharper
 
Get ReSharper
You are viewing the documentation for an earlier version of ReSharper.

Code Inspection: Possible infinite inheritance

Last modified: 21 July 2022

In a situation similar to the following:

You effectively end up with the type A<T> that inherits an infinitely recursive type B. As a result, your assembly will compile, but you will be unable to execute it. If you try, you will get an error message similar to the following: