Code inspection: Possible infinite inheritance
Last modified: 11 February 2024tip
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: