#multiplatform
Getting `Duplicate JVM class name` on MPP project ...
b
Getting
Duplicate JVM class name
on MPP project with
common
and
JVM
sourceSets dectaring
expect/actual
fun some(a:Int, b:Any)
. Any suggestions?
d
@JvmName
? Not sure if it'll work though.
Also, can you give more concrete example. (If the annotation doesn't work)
d
I typically use
.common.kt
and
.jvm.kt
prefix or avoid definitions in common file. JvmName is also a good solution.
b
Turns out if you have top level expect fun and then some real code in the same file it becomes an error. But if it's just expects in the file, everyting works
d
Yeah exactly, that's what I meant with definitions
250 Views