04e57f712e
Relates to KT-8834, we continue reducing differences between old and new inference. Note that as for `SamConversionPerArgument`, this feature is enabled in the compiler and not in the IDE to avoid breaking code for those users that already enabled new inference in the compiler
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")
|
|
}
|