Skip to content

Instantly share code, notes, and snippets.

@jto
Last active November 29, 2017 17:19
Show Gist options
  • Save jto/19f656e53bb7ed3ef563d34772dfd25a to your computer and use it in GitHub Desktop.
Save jto/19f656e53bb7ed3ef563d34772dfd25a to your computer and use it in GitHub Desktop.
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