~I'm trying to update to Kotlin 1.4 and I have a S...
# announcements
e
I'm trying to update to Kotlin 1.4 and I have a Sequence<Long> that I call
max
on. I get a deprecation warning, so I run the "Replace with maxOrNull" fix, and it replaces
.max()
with
maxOrNull()
. So I put the
.
in front, and I get an unresolved reference error. There is no fix to import it. So I manually write the import (
import kotlin.sequences.maxOrNull
), and I still get the unresolved reference error, and the import is gray (unused).
If I open
_Sequences.kt
I see
public fun <T : Comparable<T>> Sequence<T>.maxOrNull(): T?
Is there some trick that I'm missing here, or should I report this on YouTrack?
Needed to update the IDE plugin 🙈