When did the `10.minutes` notation become stable? ...
# getting-started
c
When did the
10.minutes
notation become stable? I'm pretty sure I've used in many projects without warnings, but now I see a
This declaration is experimental due to signature types and its usage must be marked (will become an error in future releases) with '@kotlin.time.ExperimentalTime' or '@OptIn(kotlin.time.ExperimentalTime::class)'
.
h
1.6
c
Thanks, that's what I thought, it's not a new thing.
I think I have a very old version of the Kotlin Gradle plugin but a recent version of the standard library
k
It could be that you're not importing
Duration.Companion.minutes
and you're using a slightly old stdlib (e.g. 1.7) and bringing in the deprecated top-level function from
Duration.kt
instead.