9017654b9d
#KT-36759 Fixed
10 lines
237 B
Kotlin
Vendored
10 lines
237 B
Kotlin
Vendored
// !LANGUAGE: +NewInference +FunctionReferenceWithDefaultValueAsOtherType
|
|
|
|
fun foo(x: String, y: String = "K"): String = x + y
|
|
|
|
fun call(f: (String) -> String, x: String): String = f(x)
|
|
|
|
fun box(): String {
|
|
return call(::foo, "O")
|
|
}
|