Skip to content

Instantly share code, notes, and snippets.

@knightpop

knightpop/ImplicitDef.sc

Last active Oct 3, 2017
Embed
What would you like to do?
implicit def convertValueCaseClassToPrintable(valueCaseClass: ValueCaseClass): PrintableClass =
PrintableClass(valueCaseClass.value)
val printableClass: PrintableClass = ValueCaseClass("Implicit Def") // by using convertValueCaseClassToPrintable
println(printableClass.print)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.