-
Notifications
You must be signed in to change notification settings - Fork 21
implicit object on a companion is not found in implicit scope #10411
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
Where is |
yes, just swapping |
I suspect this could be one of two things:
I think the best thing for it, for now, is to just avoid |
There is the known limitation around explicit implicit types. It makes implicit lookup sensitive to definition order in source text. They plan to outlaw lack of explicit type. (Sorry if this has nothing to do with your use case.)
|
Yes, this is probably a duplicate of (among others) #8697. |
for any simple typeclass
if the impl is on the companion of an ADT, everything works fine
but if
implicit val UrlEncoder
is rewritten as animplicit object
compilation fails when trying to
implicitly[UrlEncoded[AccessRequest]]
from https://github.com/fommil/drone-dynamic-agents/blob/6f3a629a9ab7fb801cfc1dcdd9b41fa4de10056e/src/main/scala/http/oauth2.scala#L281-L330
The text was updated successfully, but these errors were encountered: