KT-33211 Quickfix "add parameter" for method references should infer functional type instead of KFunction (#2664)
* "Add parameter to function" quick fix: add function type instead of KFunction for method references #KT-33211 Fixed * Support suspend function references
This commit is contained in:
committed by
GitHub
parent
6e67e1e78d
commit
4d2caa8e76
+8
@@ -0,0 +1,8 @@
|
||||
// "Add parameter to function 'baz'" "true"
|
||||
suspend fun bar(): Int = 42
|
||||
|
||||
suspend fun baz() {}
|
||||
|
||||
suspend fun foo() {
|
||||
baz(::bar<caret>)
|
||||
}
|
||||
Reference in New Issue
Block a user