Small doubt in interop :slightly_smiling_face: I h...
# announcements
g
Small doubt in interop đŸ™‚ I have a Kotlin interface that’s both implemented in Kotlin code and in Java code. This interface has a property with implementation, ie.:
Copy code
val dateAdded: Long
val dateAddedCalendar: Calendar
    get() = dateAdded.toCalendar()
In Kotlin implementations of this interface, I only have to override
dateAdded
. However, in Java implementations of this interface, I must also provide
getDateAddedCalendar
. Is there a way around this?