Why is it considered a normal source file and a KS...
# ksp
n
Why is it considered a normal source file and a KSP generated source file to be in "different module"? I have a
sealed interface A
in
module-folder/src/jvmMain/kotlin
and I generate another interface
interface B: A
with KSP in
module-folder/build/generated/ksp/jvm/jvmMain/kotlin
(
A
and
B
are in the same package). The error message is: Inheritance of sealed classes or interfaces from different module is prohibited
K 1
t
They should be compiled together and considered living within the same module. Can you share more details?
n
It was my mistake: the interface
A
was in
module-folder/src/commonMain/kotlin
(not in
jvmMain
as I wrote above). If I move it to
module-folder/src/jvmMain/kotlin
it works as expected. Sorry for the confusion.