why is it so?
# announcements
e
why is it so?
g
This is really odd and might well be a compiler bug in kotlinc.
you can probably get the behaviour you want with
val allCases: Array<out PointType> get() = arrayOf(point, candlestick)
(IE just make it lazy, also added covariance for more type safety)
oh, cant reproduce:
e
I actually can get it to work by changing the child objects of the sealed class into classes