is it possible to use this function with a generic...
# announcements
d
is it possible to use this function with a generic explicit type?
Copy code
@kotlin.jvm.JvmVersion
public inline fun <reified R> Iterable<*>.filterIsInstance(): List<@kotlin.internal.NoInfer R> {
    return filterIsInstanceTo(ArrayList<R>())
}
filterIsInstance<MyClassA<MyClassB>>()
it seems that only
MyClassA
is recognised , is that expected or am I missing something? In my case I was getting also
MyClassA<MyClassC>
in result