igor.wojda
05/03/2023, 3:17 PMrepresentsTypeOf
method in the interface? (Interface serves as the module API, and provides definition for this method implemented by the FooImpl
class)ephemient
05/03/2023, 3:36 PMinterface Foo {
fun representsTypeOf(kType: KType): Boolean
}
class FooImpl {
override fun representsTypeOf(kType: KType): Boolean = TODO()
}
inline fun <reified T> Foo.representsTypeOf(): Boolean = representsTypeOf(typeOf<T>())
igor.wojda
05/03/2023, 6:57 PM