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
275 B
Kotlin
Vendored
10 lines
275 B
Kotlin
Vendored
// !LANGUAGE: +NewInference +FunctionReferenceWithDefaultValueAsOtherType
|
|
// IGNORE_BACKEND: JS, JVM_IR
|
|
|
|
fun foo(vararg l: Long, s: String = "OK"): String =
|
|
if (l.size == 0) s else "Fail"
|
|
|
|
inline fun bar(f: () -> String): String = f()
|
|
|
|
fun box(): String = bar(::foo)
|