We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following invalid code type-checks cleanly:
type N interface { int | N }
We need to scan Unions when detecting cycles (Checker.validType).
Unions
Checker.validType
CC @griesemer
The text was updated successfully, but these errors were encountered:
Change https://golang.org/cl/351829 mentions this issue: go/types,types2: disallow illegal cycles through Unions
go/types,types2: disallow illegal cycles through Unions
Sorry, something went wrong.
13f3c57
No branches or pull requests
The following invalid code type-checks cleanly:
We need to scan
Unions
when detecting cycles (Checker.validType
).CC @griesemer
The text was updated successfully, but these errors were encountered: