Is there any official documents explain why the fi...
# random
s
Is there any official documents explain why the first one is allowed but the second one is not? I'm trying to get a correct understanding of this:
Copy code
fun test(f: (Int, Int) -> Array<Int>, g: (String, String) -> Array<String>) {
    println("f: $f")
    println("g: $g")
}

fun main() {
    test(::arrayOf, ::arrayOf)  // Allowed
    val h: (Int,Int) -> Array<Int> = ::arrayOf // Not allowed: type mismatch.
}
❤️ 2