Skip to content

Instantly share code, notes, and snippets.

@djspiewak
Created June 2, 2018 14:21
Show Gist options
  • Save djspiewak/8680f463d4e2e4a8aa8a9e0bb7999ce0 to your computer and use it in GitHub Desktop.
Save djspiewak/8680f463d4e2e4a8aa8a9e0bb7999ce0 to your computer and use it in GitHub Desktop.
trait TestTC[A]
object TestTC {
def apply[A](implicit A: TestTC[A]) = A
}
package foo {
class Bar
}
package object foo {
implicit object example extends TestTC[Bar]
}
object Testing {
TestTC[foo.Bar]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment