mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 00:21:35 +00:00
14 lines
314 B
Kotlin
Vendored
14 lines
314 B
Kotlin
Vendored
// !LANGUAGE: +NewInference
|
|
// IGNORE_BACKEND_FIR: JVM_IR
|
|
// WITH_RUNTIME
|
|
// KJS_WITH_FULL_RUNTIME
|
|
// IGNORE_BACKEND: JS
|
|
|
|
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) } |