I can't have private interface vals / functions ev...
# announcements
i
I can't have private interface vals / functions even if everything is declared in the same file... right?
g
how would you access a private val/fun?
If it’s private even the implementation would not be able to access it
i
right
I was thinking in something like file or package private, but kotlin doesn't have that
g
Depending on the use case, one option could be to make the whole interface private. Then it’s private to the file
private interface
s
or
internal
if that fits your use case