Last active
October 3, 2017 18:19
-
-
Save knightpop/4f7f674facb66a145ffb2bba41a13cb5 to your computer and use it in GitHub Desktop.
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
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