https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
m

Marc Knaup

07/28/2020, 5:38 PM
I have a multi-platform multi-module project. Is there any way to allow other modules of the same project to see each other’s
internal
declarations?
r

russhwolf

07/28/2020, 5:58 PM
internal
is by-definition limited to the same module. (That's just a kotlin thing, not MPP-specific)
You could define a
@RequiresOptIn
annotation and use that, if you want. See
@InternalCoroutinesApi
in
kotlinx.coroutines
for example.
m

Marc Knaup

07/28/2020, 6:20 PM
Yeah I was thinking about that. Too bad it’s not (easily) possible but good to know for sure
(I’m using
@Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
until I’ve refactored it in a proper way 😉)
2 Views