https://kotlinlang.org logo
#getting-started
Title
# getting-started
u

ursus

07/10/2019, 1:31 AM
probably not since I dont know the type right?
Copy code
sealed class Foo {
   abstract val a: String,
   abstract val b: String

   data class Bar(override val a: String, override val b: String) : Foo()
   data class Quax(override val a: String, override val b: String) : Foo()
}