Convert lambda to reference: suggest on lambda argument for suspend function parameter
#KT-34378 Fixed
This commit is contained in:
committed by
Yan Zhulanow
parent
9b6b25f069
commit
f7a69d4aa7
+7
@@ -0,0 +1,7 @@
|
||||
fun foo(a: suspend () -> Unit) {}
|
||||
|
||||
suspend fun action() {}
|
||||
|
||||
fun usage() {
|
||||
foo { action() <caret> }
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
fun foo(a: suspend () -> Unit) {}
|
||||
|
||||
suspend fun action() {}
|
||||
|
||||
fun usage() {
|
||||
foo(::action)
|
||||
}
|
||||
Reference in New Issue
Block a user