e822e871f5
* Convert lambda to reference: support a function which has default parameters/unit return type/suspendability #KT-39532 Fixed
8 lines
107 B
Kotlin
Vendored
8 lines
107 B
Kotlin
Vendored
fun Int.exec(f: (Int) -> Unit) = f(this)
|
|
|
|
fun bar(x: Int) = x
|
|
|
|
fun foo() {
|
|
2.exec {<caret> bar(it) }
|
|
}
|