Alberto
07/13/2020, 7:38 PMrusshwolf
07/13/2020, 8:07 PMjava.lang.Class
? That only exists on the JVM. Try KClass
instead.Alberto
07/13/2020, 8:28 PMrusshwolf
07/13/2020, 8:29 PMAlberto
07/13/2020, 8:30 PMrusshwolf
07/13/2020, 8:35 PMKClass
is the return type of foo::class
and Class
is the return type of foo::class.java
Alberto
07/13/2020, 8:40 PMimport kotlin.reflect.KClass
interface Getter {
operator fun <T : Any> get(apiInterface: KClass<T>): LazyComponent<T>
}
But fails on KMP project with:
Type argument is not within its bounds: should be subtype of 'Any'
trying to figure out whyrusshwolf
07/13/2020, 8:41 PMAlberto
07/13/2020, 9:05 PM