Anyone know why this would happen on Desktop and i...
# kotlin-native
a
Anyone know why this would happen on Desktop and ios x64. (kotlin 1.4) Desktop is pointing to macosx64:
Copy code
> Task :lib:compileTestKotlinDesktop FAILED
w: duplicate library name: org.jetbrains.kotlinx:kotlinx-coroutines-core
e: Compilation failed: IrPropertyPublicSymbolImpl for public **.api/httpClient|-3923667219442095515[0] is already bound: PROPERTY name:httpClient visibility:internal modality:FINAL [val]

 * Source files: Client.kt, Auth.kt, AuthApi.kt, Location.kt, LocationsApi.kt, Movie.kt, MoviesApi.kt
 * Compiler version info: Konan: 1.4 / Kotlin: 1.4.0
 * Output kind: LIBRARY

e: java.lang.IllegalStateException: IrPropertyPublicSymbolImpl for public **.api/httpClient|-3923667219442095515[0] is already bound: PROPERTY name:httpClient visibility:internal modality:FINAL [val]
        at org.jetbrains.kotlin.ir.symbols.impl.IrBindablePublicSymbolBase.bind(IrPublicSymbolBase.kt:49)
        at org.jetbrains.kotlin.ir.declarations.impl.IrPropertyImpl.<init>(IrPropertyImpl.kt:215)
        at org.jetbrains.kotlin.backend.common.serialization.IrFileDeserializer$deserializeIrProperty$$inlined$withDeserializedIrDeclarationBase$lambda$1.invoke(IrFileDeserializer.kt:1327)
the field is an
Copy code
internal val httpClient = provideHttpClient(url)
in the top level within a file called
Client.kt
it seems like any top-level
internal val
doesnt compile. once I remove such fields from top level, library ends up compiling