Last active
January 3, 2021 15:51
-
-
Save lucapiccinelli/c6ae6ab3ea7dc8f2f22c013ea28243af 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
sealed class Email(open val value: String){ | |
data class Verified(private val email: Unverified): Email(email.value) | |
data class Unverified(override val value: String): Email(value) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment