Skip to content

Instantly share code, notes, and snippets.

@knightpop
Created October 3, 2017 18:44
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 knightpop/2563e29b42240cc9f6ff70f49f7fb944 to your computer and use it in GitHub Desktop.
Save knightpop/2563e29b42240cc9f6ff70f49f7fb944 to your computer and use it in GitHub Desktop.
def print(implicit printableClass: PrintableClass): Unit = {
println(printableClass.print)
}
implicit val printableClass = PrintableClass("Implicit Val")
print
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment