-
Notifications
You must be signed in to change notification settings - Fork 21
By-name (lazy) implicits compiler crash in 2.13.0 #11591
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
cc @milessabin |
related or duplicate #11524 ? 🤔 |
Ah yes you are right |
I'll keep this one actually ... I'll have an easier time reducing the kittens example. |
Minimized as, object Test {
class A
class B
implicit def mkA(implicit b: => B): A = ???
implicit def mkB(implicit a: A, i: Int): B = ???
implicitly[A]
} |
milessabin
added a commit
to milessabin/scala
that referenced
this issue
Jul 3, 2019
If any RHS of a recursive implicit dictionary (after pruning) is an EmptyTree, then this indicates that implicit search failed and we should report the overall search as a failure. Fixes scala/bug#11591.
PR here: scala/scala#8201. Confirmed that it fixes the original Kittens issue: I was able to replace all the commented out |
milessabin
added a commit
to milessabin/scala
that referenced
this issue
Jul 3, 2019
If any RHS of a recursive implicit dictionary (after pruning) is an EmptyTree, then this indicates that implicit search failed and we should report the overall search as a failure. Fixes scala/bug#11591.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Unfortunately I don't have a minimized example but it's at least reproducible.
How to reproduce:
This is the line that causes the crash:
joroKr21/kittens@55dd188
JVM backend error
JS backend error
Expectation:
The code should not compile with a type error (implicit not found).
The text was updated successfully, but these errors were encountered: