e822e871f5
* Convert lambda to reference: support a function which has default parameters/unit return type/suspendability #KT-39532 Fixed
8 lines
127 B
Kotlin
Vendored
8 lines
127 B
Kotlin
Vendored
fun Int.foo(x: Int, y: Int = 42) = x + y
|
|
|
|
fun bar(f: (Int, Int) -> Int) {}
|
|
|
|
fun test() {
|
|
bar <caret>{ i, x -> i.foo(x) }
|
|
}
|