Convert to lambda reference: don't suggest when lambda is argument for 'suspend' function parameter
#KT-16907 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
b75ab5c832
commit
59f70a912a
+15
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user