mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 08:31:35 +00:00
13 lines
296 B
Kotlin
Vendored
13 lines
296 B
Kotlin
Vendored
// !LANGUAGE: +NewInference
|
|
// IGNORE_BACKEND_FIR: JVM_IR
|
|
// WITH_RUNTIME
|
|
// IGNORE_BACKEND: JS, JS_IR
|
|
|
|
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) } |