https://kotlinlang.org logo
#language-proposals
Title
# language-proposals
k

karelpeeters

07/25/2018, 8:07 PM
I hate to open up an old can of worms, but what specifically is the problem around https://youtrack.jetbrains.net/issue/KT-6653? I thought properties were just sugar syntax for getter/setter pairs? What am I missing? Andrey Breslav says:
As a matter of a short answer: it seems to me that to make properties seamlessly override functions, we'd have to basically treat property accessors as individual members, and allow overrides in every-which-way: a function can override a property, and a property can override a function. Otherwise it leads to inconsistencies of all sorts.
But I still don't get the problem.
2