data class Container(val value: T) fun methodB(input: Container) { } fun methodA(target: (Container) -> Unit) { } fun main() { methodA(::methodB) }