e822e871f5
* Convert lambda to reference: support a function which has default parameters/unit return type/suspendability #KT-39532 Fixed
8 lines
150 B
Kotlin
Vendored
8 lines
150 B
Kotlin
Vendored
// COMPILER_ARGUMENTS: -XXLanguage:+SuspendConversion
|
|
fun foo(a: suspend () -> Unit) {}
|
|
|
|
fun action() {}
|
|
|
|
fun usage() {
|
|
foo { action() <caret> }
|
|
} |