Files
kotlin-fork/compiler/testData/codegen/box/callableReference/adaptedReferences/adaptedVarargFunImportedFromObject.kt
T
2021-09-20 19:08:22 +03:00

12 lines
149 B
Kotlin
Vendored

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