When I followed the IDE auto-suggestion to rename ...
# announcements
d
When I followed the IDE auto-suggestion to rename
10.seconds
to
Duration.seconds(10)
I got an error that
Duration.seconds
does not exist. Autocomplete shows the only members of
Duration.Companion
are
ZERO
and
INFINITY
. However, jumping to the definition of
Duration
shows
fun seconds
. I don't understand what could cause this
e
Kotlin version? note that kotlin.time.Duration in Kotlin 1.4 and 1.5 are not compatible
d
I'm currently trying to figure that out. Wouldn't I see the source of the right version when I jump to definition though? Here's what I see
My apologies, I misunderstood my kotlin version