Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

types2, go/types: need to detect invalid recursive type instantiation #48098

Open
griesemer opened this issue Aug 31, 2021 · 2 comments
Open

types2, go/types: need to detect invalid recursive type instantiation #48098

griesemer opened this issue Aug 31, 2021 · 2 comments
Assignees
Labels
Milestone

Comments

@griesemer
Copy link
Contributor

@griesemer griesemer commented Aug 31, 2021

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.

cc: @findleyr

@findleyr
Copy link
Contributor

@findleyr findleyr commented Sep 2, 2021

Related: #45550.

@griesemer
Copy link
Contributor Author

@griesemer griesemer commented Sep 7, 2021

Related: #48096.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants