agrosner
09/04/2020, 7:18 PM> 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)
agrosner
09/04/2020, 7:27 PMinternal val httpClient = provideHttpClient(url)
in the top level within a file called Client.kt
agrosner
09/04/2020, 7:30 PMinternal val
doesnt compile. once I remove such fields from top level, library ends up compiling