Last active
November 29, 2017 17:19
-
-
Save jto/19f656e53bb7ed3ef563d34772dfd25a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trait TC[F[_]] | |
trait Foo { | |
type I[_] | |
implicit def tc: TC[I] | |
} | |
def test(g: Foo): Int = { | |
import g._ | |
implicitly[TC[I]](tc) // compiles | |
implicitly[TC[I]] // could not find implicit value for parameter e: TC[g.I] | |
4 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment