Upcast exposed internal properties to supertype

This has already been discussed here and there is an open issue for this (KT-14663).

At the moment, the second workaround:

val addressList: List<String> get() = _addressList

would (IMO) be more idiomatic than a function.

1 Like