Join Slack
Communities
Powered by
<@U3BE1HS4W> You need to use `field` to access the...
# announcements
k
karelpeeters
04/05/2018, 6:41 AM
@snowe
You need to use
field
to access the backing field, not the actual field.
s
snowe
04/05/2018, 4:55 PM
sorry, I knew that, but that does not work as well since it is an interface.
snowe
04/05/2018, 4:55 PM
the docs state that interfaces can't have backing fields.
k
karelpeeters
04/05/2018, 4:59 PM
Well think about how you'd write this if you actually had to write out the getter and setter like in Java.
karelpeeters
04/05/2018, 5:00 PM
I'd guess that it's not really possible.
3
Views
Open in Slack
Previous
Next