I'm fairly certain this was discussed recently, bu...
# announcements
r
I'm fairly certain this was discussed recently, but I don't remember the outcome. Is there a way to have the getter of a
var
override a java interface getter? For example:
Copy code
// Java Interface
public interface Identified {
    String getId();
}
// Kotlin implementation
class Thing : Identified {
    val idProperty = ....
    var id: String?
        get() = idProperty.get()  // Won't compile; accidental override
        set(value) = idProperty.set(value)
}