bdh2
07/31/2016, 7:50 PMB
inherits class A
, I have a property open val children = mutableListOf<A>
in class X
and in class Y
I'm trying to override children
with override open val children = mutableListOf<B>()
but IDEA is giving me Type of 'children' is not a subtype of the overridden property 'public open val children: MutableList<A> defined in package.A'
is there anyway around this? or should I be taking a different approach?