Ah sorry, `this` a bit confusing. The context was ...
# reflect
d
Ah sorry,
this
a bit confusing. The context was
Copy code
fun <T: Any> T.testMethods(): List<KFunction<RootContextBuilder<*>>> = this::class.memberFunctions
    .filter { method ->
        method.returnType.classifier == RootContextBuilder::class &&
            method.parameters.size == 1 &&
            method.visibility == KVisibility.PUBLIC
    }...