Closed joroKr21 closed 5 years ago
cc @milessabin
related or duplicate https://github.com/scala/bug/issues/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]
}
PR here: https://github.com/scala/scala/pull/8201.
Confirmed that it fixes the original Kittens issue: I was able to replace all the commented out printlns
with illTyped
and tests compiled and ran.
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@55dd188cab227672e29e615880ab022417515916
JVM backend error
``` [warn] an unexpected type representation reached the compiler backend while compiling empty.scala:JS backend error
``` [error] [error] Unknown type:Expectation:
The code should not compile with a type error (implicit not found).