Skip to content

Instantly share code, notes, and snippets.

@xuwei-k
Forked from hexx/implicit.scala
Created May 7, 2014 12:41
Show Gist options
  • Save xuwei-k/0e808e75112d5bdc8094 to your computer and use it in GitHub Desktop.
Save xuwei-k/0e808e75112d5bdc8094 to your computer and use it in GitHub Desktop.
case class B()
trait A {
implicit val b = B()
}
object App extends A {
def main(args: Array[String]): Unit = {
printImplicit
}
def printImplicit(implicit b: B) = b
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment