Files
kotlin/compiler/testData/codegen/box/callableReference/adaptedReferences/inlineVararg.kt

12 lines
262 B
Kotlin
Vendored

// !LANGUAGE: +NewInference
// WITH_RUNTIME
// KJS_WITH_FULL_RUNTIME
inline fun foo(mkString: (Char, Char) -> String): String =
mkString('O','K')
fun bar (vararg xs: Char) =
String(xs)
fun box(): String = foo(::bar)
// -> { a, b -> bar(a, b) }