Why does <TestClock> <implement> `java.time.Clock`...
# kotest
e
Why does TestClock implement
java.time.Clock
rather than
kotlinx.datetime.Clock
?
k
Since
java.time.Clock
is a class, it extends it rather than implementing it. However, I don't see why it can't extend
java.time.Clock
and implement
kotlinx.datetime.Clock
too. They have different methods, so there's no ambiguity.