Diverging implicit expansion for type for the first implicit parameter search #8773
Labels
fixed in Scala 3
This issue does not exist in the Scala 3 compiler (https://github.com/lampepfl/dotty/)
typer
Milestone
For the first sight this code looks ok:
Here compiler will say weird compiler error:
Error:(60, 18) diverging implicit expansion for type HttpApiService.this.JF[T]
starting with method iterableRJF in class HttpApiService
foo(Seq(G(1)))(m(seqRJF))
^
However you can remove explicitly passed seqRJF and everything will be ok. I don't see any reasons of such behaviour.
Another similar example can be found here: http://youtrack.jetbrains.com/issue/SCL-7335#comment=27-772977
That's about original question and why Scala compiler is able to find implicit parameter in that case.
The text was updated successfully, but these errors were encountered: