arekolek05/21/2018, 12:47 PM
why this doesn't compile?
is of type
, and that is not a sealed class Also, if you run:
KClass<T : Foo>
val par: List<Foo> = listOf(Foo1(), Foo2()) test(par)
so none of the branches in your
would be executed