https://kotlinlang.org logo
a

ashushunov

02/27/2016, 4:40 PM
Is possible to do sealed interface? I think, It will be very convenient for data classes.
Copy code
sealed interface Animal {
    data class Dag() : Animal
    data class Cat() : Animal
}