go/types, cmd/compile/internal/types2: stack overflow checking recursive generic type #45550
The type checker does not currently handle invalid recursive constraints very gracefully. Consider the following
If the declaration for
We should instead emit an error that this recursive type declaration is invalid.
The text was updated successfully, but these errors were encountered: