-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Compiler Crashes Attempting To Compile ZIO Prelude On 3.0.0-RC1 #11676
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
If it would be of any help, here's a link to the build log in GitHub Actions on Java 8 |
Minimized: sealed trait PartialOrdering
sealed trait Ordering extends PartialOrdering
object Ordering {
def fromCompare(n: Int): Ordering = ???
}
trait PartialOrd[-A] {
def checkCompare(l: A, r: A): PartialOrdering
}
trait Ord[-A] extends PartialOrd[A] {
def checkCompare(l: A, r: A): Ordering
}
object Ord {
def fromScala[A](implicit ordering: scala.math.Ordering[A]): Ord[A] =
(l: A, r: A) => Ordering.fromCompare(ordering.compare(l, r))
} |
The crash happens because we check if |
@griggt Nice minimization! |
I'm working on #10068 just right now |
Partially based on scala/scala#6087 Fixes scala#10068 Fixes scala#11676
Partially based on scala/scala#6087 Fixes scala#10068 Fixes scala#11676
See PR attempting to update here.
The error message is unfortunately very long.
I realize this is not minimized but unfortunately given the nature of the error message I'm not sure how we would go about minimizing it. ZIO Prelude was compiling on
3.0.0-M3
so perhaps someone with more familiarity with the changes betweenM3
andRC1
would have a better sense of what could be causing the issue.Copying @vigoo and @sideeffffect.
The text was updated successfully, but these errors were encountered: