Convert to lambda reference: don't suggest when lambda is argument for 'suspend' function parameter

#KT-16907 Fixed
This commit is contained in:
Toshiaki Kameyama
2020-01-27 16:06:47 +09:00
committed by Mikhail Glukhikh
parent b75ab5c832
commit 59f70a912a
3 changed files with 23 additions and 1 deletions
@@ -0,0 +1,15 @@
// IS_APPLICABLE: false
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)
}
}