Hey guys, are function references available for K/...
# multiplatform
j
Hey guys, are function references available for K/N? I have functions like these ones:
Copy code
//Declaration
fun <K,V>cache(getNew: suspend () -> List<Pair<K, V>>)
//Usage
cache(::getAllChannelsFromApi)
When compiling for Android everything works fine, but on iOS I get
Type mismatch: inferred type is KSuspendFunction0<List<Pair<Int, Channel>>> but suspend () -> List<Pair<Int, Channel>> was expected
d
o
yes, function references are supported, please report an issue with reproducer
j
Thanks guys, I will report then