Ruckus
10/11/2017, 8:20 PMvar
override a java interface getter? For example:
// 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)
}