xxfast
09/07/2022, 4:13 AMjava.lang.IllegalStateException: IrPropertyPublicSymbolImpl for io.github.xxfast.utils/FILE_SYSTEM|225970167697663469[0] is already bound: PROPERTY name:FILE_SYSTEM visibility:public modality:FINAL [val]
my build script is setup as
kotlin {
val hostOs = System.getProperty("os.name")
val isMingwX64 = hostOs.startsWith("Windows")
val nativeTarget = when {
hostOs == "Mac OS X" -> macosX64("native")
hostOs == "Linux" -> linuxX64("native")
isMingwX64 -> mingwX64("native")
else -> throw GradleException("Host OS is not supported in Kotlin/Native.")
}
sourceSets {
val nativeMain by getting { .. }
val nativeTest by getting {
dependsOn(nativeMain)
}
}
}
and have my implementation as
// commonMain
expect val FILE_SYSTEM: FileSystem
// nativeMain
actual val FILE_SYSTEM: FileSystem = FileSystem.SYSTEM
Am I doing something wrong here? 🤔 jvm target is able to build and run fine