Why is autocompletion deeming `equals` and more ge...
# intellij
l
Why is autocompletion deeming
equals
and more generic stuff more relevant that the bold
withElementForKey
member function? Here's the type I'm invoking autocomplete on:
Copy code
interface RequestSharer<K, E> {

    suspend fun <R> withElementForKey(
        key: K,
        block: suspend (E) -> R
    ): R

    companion object { … }
}
AS Koala 2024.1.1 Patch 1
☝️ 1
Also, I don't understand why it's showing autocompletion for
create
which is in the companion object. The suggestion would never compile.
e
Might be the ML completion screwing up results?
l
I have it off for Kotlin
d
Are you in a suspend function? when trying to call it?
l
Yes I was, and even if I wasn't, it's often possible to make the calling context suspend
e
Did you find a solution in the end?
l
The bug is probably still there. I wrote my code anyway, despite autocomplete being bad.