Hey folks, I'm having an issue trying to use an `i...
# announcements
n
Hey folks, I'm having an issue trying to use an
internal
class from a test within the same module (test & class packages are different though). According to the docs, it should work: https://kotlinlang.org/docs/reference/visibility-modifiers.html#modules (see "Modules", 3rd option). I'm using Kotlin Multiplatform though, hence my source sets are called
commonMain
and
commonTest
, not just
main
and
test
. Could this be causing this access issue? Is this a bug?
Actually, it's a little more complicated: the test is in
jvmTest
source set but the class I'm trying to import is in
commonMain
.
a
n
Thanks for the pointer! Fortunately in my case it turned out someone misplaced a unit test and put it into another module. After moving it to the right module, it started working.