Join Slack
Communities
Powered by
is there an opposite to "inner" for classes? I wan...
# announcements
t
TwoClocks
10/21/2018, 3:56 AM
is there an opposite to "inner" for classes? I want my inner class to have some private data/method that's only callable/modifiable from the outer class. Can't quite figure out how to do that. This must be a common thing, no?
k
karelpeeters
10/21/2018, 7:15 AM
Very common thing to do, unfortunately not supported by Kotlin:
https://discuss.kotlinlang.org/t/why-outer-class-cannot-see-private-members-of-inner-class/6791/11
karelpeeters
10/21/2018, 7:15 AM
There's some workarounds there.
t
TwoClocks
10/22/2018, 11:20 PM
Kinda sad, but. Very helpful. thanks!
3
Views
Open in Slack
Previous
Next