Reflections and extension function confusion

Why does the check fail? I would expect Foo.bar() to be in the memberExtensionFunctions list.
I also tried declaredMemberExtensionFunction (though I’m not sure what the difference is) with the same result. Am I missing something?

The list contains member extension functions, i.e. those that are both members and extensions at the same time:

class C {
    fun D.ext() {} // this is a member extension function
}
1 Like