Skip to content

Instantly share code, notes, and snippets.

@hexx
Created May 7, 2014 11:51
Show Gist options
  • Save hexx/8de588b3e7a288f4e8fe to your computer and use it in GitHub Desktop.
Save hexx/8de588b3e7a288f4e8fe to your computer and use it in GitHub Desktop.
implicit compile error
case class B()
object App extends A {
def main(args: Array[String]): Unit = {
printImplicit
}
def printImplicit(implicit b: B) = b
}
trait A {
implicit val b = B()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment