gildor
05/22/2019, 3:47 PMvalue
abstract field instead of constructor property, it's more flexible and less typingRok Koncina
05/22/2019, 3:48 PMgildor
05/22/2019, 3:48 PMShawn
05/22/2019, 3:48 PMRok Koncina
05/22/2019, 3:49 PMstreetsofboston
05/22/2019, 3:49 PMRok Koncina
05/22/2019, 3:51 PMstreetsofboston
05/22/2019, 3:56 PMvalue
of a `BaseStatus`’s as-is, not cast to one of its sub-types?gildor
05/22/2019, 11:16 PMRok Koncina
05/23/2019, 8:57 AMsealed class A(val value1: Type1)
data class B(val value2: Type2): A
and I could then initialise it with:
val b = B(Type2(), Type1())
I know this might be logically impossible, but hey, magic is magic 😉gildor
05/23/2019, 9:26 AMRok Koncina
05/23/2019, 9:51 AM