lawlorslaw
02/06/2020, 11:27 PMclazz that is a KClassImpl
how would i check if that is of type FooBar
i tried this
clazz.java.isInstance(FooBar::class.java)
but that always returns falsetseisel
02/07/2020, 5:05 PMClass : isInstance checks that the parameter is an instance of that class, which is always false for an instance of Class<FooBar>
You need to use clazz.java.isAssignableFrom(FooBar::class.java) instead.