``` inline fun <reified T : Any> myFunc() = ...
# announcements
i
Copy code
inline fun <reified T : Any> myFunc() = myFuncImpl(T::class)

internal fun <T : Any> myFuncImpl(clazz: KClass<T>) {}
#language-proposals How about making this compile? Thread in Slack Conversation If you want to call internal api from public inline function, you need to annotate it with
@PublishedApi
annotation. This will make it effectively public.