mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 00:21:35 +00:00
9 lines
226 B
Kotlin
Vendored
9 lines
226 B
Kotlin
Vendored
// !LANGUAGE: +NewInference +FunctionReferenceWithDefaultValueAsOtherType
|
|
// IGNORE_BACKEND_FIR: JVM_IR
|
|
|
|
inline fun String.app(f: (String) -> String) = f(this)
|
|
|
|
fun fff(s: String, n: Int = 42) = s
|
|
|
|
fun box() = "OK".app(::fff)
|