Files
kotlin-fork/idea/testData/quickfix/changeSignature/addFunctionParameterWithFunctionReference.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
128 B
Plaintext
Vendored

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