Skip to content

Instantly share code, notes, and snippets.

Last active October 3, 2017 18:25
What would you like to do?
implicit class ConvertableValueCaseClass(valueCaseClass: ValueCaseClass) {
def toPrintable: PrintableClass = PrintableClass(valueCaseClass.value)
val printableClass2: PrintableClass = ValueCaseClass("Implicit class").toPrintable // by using implicit class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment