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)
|