Skip to content

Instantly share code, notes, and snippets.

@Danny02
Created October 14, 2013 15:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Danny02/6977636 to your computer and use it in GitHub Desktop.
Save Danny02/6977636 to your computer and use it in GitHub Desktop.
trait A[T]{
def foo(): Any
}
implicit object B extends A[Bar]{
def foo(): String = "Hi"
}
val a: String = B.foo()
//doesn't work of course
val b: String = implicitly[A[Bar]].foo()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment