-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Type recursion not detected in opaque types, leads to genBCode
crash
#19372
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
@indoorvivants It can happen when creating bindings using sn-bindgen for icu4c |
Minimizedtype A = List[bar.B]
def foo: A = ???
object bar:
opaque type B = A Alternative version that loops infinitely without crashingtype A = bar.B
def foo: A = ???
object bar:
opaque type B = A |
odersky
added a commit
to dotty-staging/dotty
that referenced
this issue
Jan 15, 2024
Several improvements: - Follow opaque aliases as if they were aliases. Otherwise we risk crashing in phases where the `opaque` is dropped and these become regular aliases. - Update the `isInteresting` test to follow more types. Previously the test was too strict so some cycles were missed. - Make -explain-cyclic also explain for cycles detected by this check. Fixes scala#19372
smarter
added a commit
that referenced
this issue
Jan 16, 2024
Several improvements: - Follow opaque aliases as if they were aliases. Otherwise we risk crashing in phases where the `opaque` is dropped and these become regular aliases. - Update the `isInteresting` test to follow more types. Previously the test was too strict so some cycles were missed. - Make -explain-cyclic also explain for cycles detected by this check. Fixes #19372
WojciechMazur
pushed a commit
that referenced
this issue
Jun 27, 2024
Several improvements: - Follow opaque aliases as if they were aliases. Otherwise we risk crashing in phases where the `opaque` is dropped and these become regular aliases. - Update the `isInteresting` test to follow more types. Previously the test was too strict so some cycles were missed. - Make -explain-cyclic also explain for cycles detected by this check. Fixes #19372 [Cherry-picked 756ae34]
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Compiler version
All Scala 3 versions
Minimized code
Output (click arrow to expand)
Related issue
When types are defined in the same scope, the incremental compilation would fail
The text was updated successfully, but these errors were encountered: