Files
kotlin-fork/compiler/testData/codegen/box/callableReference/kt44483.kt
T

10 lines
268 B
Kotlin
Vendored

// DONT_TARGET_EXACT_BACKEND: WASM
// WITH_RUNTIME
fun <K, V> f(vararg p: Pair<K, V>): K = p[0].first
fun box(): String {
// NB this is not an adapted function reference
val f: (Array<out Pair<String, Int>>) -> String = ::f
return f(arrayOf("OK" to 0))
}