Files
kotlin-fork/idea/testData/quickfix/changeSignature/addFunctionParameterWithSuspendFunctionReference.kt.after
T
Toshiaki Kameyama 4d2caa8e76 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
2020-06-11 17:01:07 +03:00

8 lines
167 B
Plaintext
Vendored

// "Add parameter to function 'baz'" "true"
suspend fun bar(): Int = 42
suspend fun baz(kSuspendFunction0: suspend () -> Int) {}
suspend fun foo() {
baz(::bar)
}