One possibility is when the getter from a super ty...
# android
k
One possibility is when the getter from a super type returns a type, and its subclass then returns a more specific type. In the case of
fun TextView.getText(): CharSequence
and
fun EditText.getText(): Editable
. Here, the property type will depend on the compile time type of your variable
Copy code
val view: TextView = EditText...
view.text // CharSequence

val view = EditText...
view.text // Editable