9017654b9d
#KT-36759 Fixed
8 lines
196 B
Kotlin
Vendored
8 lines
196 B
Kotlin
Vendored
// !LANGUAGE: +NewInference +FunctionReferenceWithDefaultValueAsOtherType
|
|
|
|
inline fun String.app(f: (String) -> String) = f(this)
|
|
|
|
fun fff(s: String, n: Int = 42) = s
|
|
|
|
fun box() = "OK".app(::fff)
|