-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Over-eager Cyclic References when compiling Opaque Types #16642
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
Comments
odersky
added a commit
to dotty-staging/dotty
that referenced
this issue
Jan 9, 2023
When we have a TypeBounds tree that also has an alias, we checked that the alias is within bounds at Typer. This could provoke a CyclicReference when processing opaque type aliases where the type has a bound and also the alias refers back to the type. We avoid the problem by performing the check at PostTyper, analogous to other bounds checks. Fixes scala#16642
odersky
added a commit
to dotty-staging/dotty
that referenced
this issue
Jan 9, 2023
When we have a TypeBounds tree that also has an alias, we checked that the alias is within bounds at Typer. This could provoke a CyclicReference when processing opaque type aliases where the type has a bound and also the alias refers back to the type. We avoid the problem by performing the check at PostTyper, analogous to other bounds checks. Fixes scala#16642
This was referenced Jan 9, 2023
odersky
added a commit
that referenced
this issue
Jan 10, 2023
When we have a TypeBounds tree that also has an alias, we checked that the alias is within bounds at Typer. This could provoke a CyclicReference when processing opaque type aliases where the type has a bound and also the alias refers back to the type. We avoid the problem by performing the check at PostTyper, analogous to other bounds checks. Fixes #16642
odersky
added a commit
to dotty-staging/dotty
that referenced
this issue
Jan 11, 2023
When we have a TypeBounds tree that also has an alias, we checked that the alias is within bounds at Typer. This could provoke a CyclicReference when processing opaque type aliases where the type has a bound and also the alias refers back to the type. We avoid the problem by performing the check at PostTyper, analogous to other bounds checks. Fixes scala#16642
little-inferno
pushed a commit
to little-inferno/dotty
that referenced
this issue
Jan 25, 2023
When we have a TypeBounds tree that also has an alias, we checked that the alias is within bounds at Typer. This could provoke a CyclicReference when processing opaque type aliases where the type has a bound and also the alias refers back to the type. We avoid the problem by performing the check at PostTyper, analogous to other bounds checks. Fixes scala#16642
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Compiler version
All 3.x versions
Minimized example
Output
Expectation
Should compile in the same way as when
<: AnyRef
is missing.The text was updated successfully, but these errors were encountered: