mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 08:31:29 +00:00
13 lines
315 B
Kotlin
Vendored
13 lines
315 B
Kotlin
Vendored
// !LANGUAGE: +NewInference +FunctionReferenceWithDefaultValueAsOtherType
|
|
// IGNORE_BACKEND_FIR: JVM_IR
|
|
// WITH_RUNTIME
|
|
// KJS_WITH_FULL_RUNTIME
|
|
|
|
inline fun foo(mkString: () -> String): String =
|
|
mkString()
|
|
|
|
fun bar (xs: CharArray = charArrayOf('O','K')) =
|
|
String(xs)
|
|
|
|
fun box(): String = foo(::bar)
|