e822e871f5
* Convert lambda to reference: support a function which has default parameters/unit return type/suspendability #KT-39532 Fixed
16 lines
325 B
Kotlin
Vendored
16 lines
325 B
Kotlin
Vendored
// IS_APPLICABLE: false
|
|
// COMPILER_ARGUMENTS: -XXLanguage:-SuspendConversion
|
|
|
|
fun coroutine(block: suspend () -> Unit) {}
|
|
|
|
suspend fun testAction(obj: Any, action: suspend (Any) -> Unit) {
|
|
action(action)
|
|
}
|
|
|
|
fun println(message: Any?) {}
|
|
|
|
fun main() = coroutine {
|
|
testAction("OK") {<caret>
|
|
println(it)
|
|
}
|
|
} |