Hello, I’m just getting started with KMM and tripp...
# multiplatform
s
Hello, I’m just getting started with KMM and tripped over this compile error.
sqlPlatformModule
is implemented in both
androidMain
and
iosMain
. Interestingly when moving
sqlPlatformModule
to another file this works 🤷🏼‍♂️ Is this a current limitation of Kotlin Multiplatform?
j
Does it still compile? You could probably add:
Copy code
@Suppress("UNINITIALIZED_VARIABLE")
above the line to hide the IDE error. It's not uncommon that the IDE displays false positive errors that aren't actually compilation errors with KMP.
x
would you see the same error if the
sqlPlatformModule
is defined in a seperate file?
s
@Jeff Lockhart It is not an IDE false positive. Code does also not compile from command line.
@xxfast As I wrote above 😉 it does compile when I move
sqlPlatformModule
to another file.
x
yea this seems like a tooling limitation