Join Slack
Powered by
Okay. Thanks. Is there a way to get around this? I...
# announcements
o
okkero
01/26/2017, 5:24 PM
Okay. Thanks. Is there a way to get around this? I don't want to expose my field to Java code. I thought this was a bug.
i
ilya.gorbunov
01/26/2017, 10:03 PM
okkero: The backing field of a lateinit property gets the visibility of the property setter.
o
okkero
01/26/2017, 11:10 PM
Why was this decision made?
i
ilya.gorbunov
01/27/2017, 8:09 AM
To satisfy both requirements: - expose the field of lateinit for DI frameworks by default, - still provide the way not to expose it if not required
o
okkero
01/27/2017, 11:19 AM
So there is no way to expose the setter of a lateinit property without exposing the backing field?
4
Views
Open in Slack
Previous
Next