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