-
-
Save xuwei-k/0e808e75112d5bdc8094 to your computer and use it in GitHub Desktop.
This file contains hidden or 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() | |
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