Skip to content

Instantly share code, notes, and snippets.

@stephenjudkins
Forked from anonymous/gist:4496750
Last active December 10, 2015 21:39
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 stephenjudkins/4496805 to your computer and use it in GitHub Desktop.
Save stephenjudkins/4496805 to your computer and use it in GitHub Desktop.
trait Imp[T] {}
object Imp {
implicit val i = new Imp[Int] {}
}
import Imp._
trait F {
type T
implicit def imp:Imp[T]
}
class Bar(implicit val imp:Imp[Int]) extends F {
type T = Int
}
val Bar = new Bar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment