Created
May 7, 2014 11:51
-
-
Save hexx/8de588b3e7a288f4e8fe to your computer and use it in GitHub Desktop.
implicit compile error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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