Skip to content

[match types] ill-formed recursion causes compiler to hang #9849

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

Closed
IndiscriminateCoding opened this issue Sep 22, 2020 · 1 comment
Closed

Comments

@IndiscriminateCoding
Copy link

Minimized code

type *:[A, B] = A match
  case (B *: x) => A
  case (x *: y) => x *: (B *: y)
  case _ => A *: B

Output (click arrow to expand)

Well, not actually crash, but it hangs indefinitely
@griggt
Copy link
Contributor

griggt commented Jan 31, 2021

This no longer hangs after #7389.

OlivierBlanvillain added a commit to dotty-staging/dotty that referenced this issue Apr 30, 2021
liufengyun added a commit that referenced this issue May 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants