lundi 22 juin 2020

Kotlin: How can I determine the extension function exists

Suppose I have a function (in Kotlin over Java):

fun <E> myFun() = ...

where E is a general type I know nothing about. Can I determine within this function whether there exists an extension function E.extFun()? And if so, how?





Aucun commentaire:

Enregistrer un commentaire