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
11 lines
168 B
Kotlin
Vendored
11 lines
168 B
Kotlin
Vendored
fun foo(a: String, b: Int = 5): String {
|
|
return a + b
|
|
}
|
|
|
|
fun bar1(body: (String) -> String): String {
|
|
return body("something")
|
|
}
|
|
|
|
fun test() {
|
|
bar1(::foo)
|
|
} |