i am converting a project to multiplatform and I h...
# multiplatform
c
i am converting a project to multiplatform and I have this strange error:
Copy code
e: file:///Users/christoph/Projects/failgood/failgood/src/failgood/SuiteResult.kt:31:26 Overload resolution ambiguity between candidates:
actual fun getenv(name: String): String?
actual fun getenv(name: String): String?
expect fun getenv(name: String): String?
the call is from the jvmMain source set and I the method is expect in common and defined in the jvmMain ans jsMain source set. why does it not just use the jvmMain version when the call is there?
oh found it. it has to do with my compact source directory layout that i had not configured yet for js so my js sources were in a subdirectory of my common sources.