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

13 lines
222 B
Kotlin
Vendored

// DONT_TARGET_EXACT_BACKEND: WASM
// WASM_MUTE_REASON: BINDING_RECEIVERS
import Host.foo
fun withO(fn: (String) -> String) = fn("O")
object Host {
fun foo(vararg x: String) = x[0] + "K"
}
fun box() = withO(::foo)