You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
do not compile because there are now both kotlinx.datetime and kotlin.time versions of Clock and Instant:
ClockTimeSourceTest.kt:26: error: overload resolution ambiguity between candidates:
interface Clock : Any
interface Clock : Any
val timeSource = Clock.System.asTimeSource()
^^^^^
The text was updated successfully, but these errors were encountered:
You probably mean kotlinx.datetime, not kotlinx.time, right? Yes, that's true, the standard library now has Clock and Instant. You are advised to avoid star imports, or you will encounter such issues when some library adds a new API.
You probably mean kotlinx.datetime, not kotlinx.time, right?
Yes, thanks. Edited.
Yes, that's true, the standard library now has Clock and Instant. You are advised to avoid star imports, or you will encounter such issues when some library adds a new API.
I mean there are tests in this repository that have this problem
The tests that
do not compile because there are now both
kotlinx.datetime
andkotlin.time
versions ofClock
andInstant
:The text was updated successfully, but these errors were encountered: