types2, go/types: need to detect invalid recursive type instantiation #48098
Per the type parameters proposal:
A generic type can refer to itself in cases where a type can ordinarily refer to itself, but when it does so the type arguments must be the type parameters, listed in the same order.
The type checkers currently don't do this test. Reminder issue.
The text was updated successfully, but these errors were encountered: