Kotlin 1.4-M2 fixes the issue where the coroutines...
# intellij
z
Kotlin 1.4-M2 fixes the issue where the coroutines
Flow.collect
method from the
Flow
interface showed up first in code completion, despite being effectively internal. How does that actually work? Is there some internal hard-coding that special-cases that particular method, or is there a way to use this trick in other code?
1
a
z
It is hard-coded 😕 Would it be possible to automatically automatically lower the precedence of any method that is tagged with a
RequiresOptIn.Level.ERROR
? The compiler already knows it's going to raise an error in those cases, so it would seem useful to always push those down.
a
Sure, can you please submit an issue to http://kotl.in/issue
l
Submitted the feature request here: https://youtrack.jetbrains.com/issue/KT-40231
🙏 1
z
Thanks @louiscad, somehow I forgot to follow up on this