Hi guys. My kotlin class implements this followin...
# announcements
d
Hi guys. My kotlin class implements this following Java interface:
Copy code
public interface ClusterItem { LatLng getPosition(); }
It prevents me from having the property
val position: LatLng
. The compiler says that declarations have the same JVM signature. So, I have to have such ugly getter in kotlin class:
Copy code
override fun getPosition(): LatLng = _position
How can I avoid that and have just a property that overrides mentioned interface method?