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

StackOverflow in typer #10846

Open
hobwekiva opened this issue Apr 25, 2018 · 1 comment
Open

StackOverflow in typer #10846

hobwekiva opened this issue Apr 25, 2018 · 1 comment
Labels
compiler crash fixed in Scala 3 This issue does not exist in the Scala 3 compiler (https://github.com/lampepfl/dotty/) typer
Milestone

Comments

@hobwekiva
Copy link

hobwekiva commented Apr 25, 2018

I have a good reason to believe that the majority of the examples given in scala/scala3#4368 will stack overflow or hang in Scala2 (I checked that the first 3 hang in scastie).

@SethTisue SethTisue added this to the Backlog milestone Apr 25, 2018
@SethTisue SethTisue added the fixed in Scala 3 This issue does not exist in the Scala 3 compiler (https://github.com/lampepfl/dotty/) label Feb 9, 2023
@SethTisue
Copy link
Member

The simplest of the reproductions:

trait X {
  type A = B
  type B
}
trait Y {
  type A
  type B = A
}
trait Z extends X with Y

does still give a stack overflow in Scala 2.13.10.

I imagine it's likely the others do as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler crash fixed in Scala 3 This issue does not exist in the Scala 3 compiler (https://github.com/lampepfl/dotty/) typer
Projects
None yet
Development

No branches or pull requests

3 participants