crummy
05/06/2019, 11:11 PMval Map<UInt, UInt>.hex: String
get() = this.map { "${it.key.hex}=${it.value.hex}" }.toString()
@get:JvmName("mapIntByteHex")
val Map<UInt, UByte>.hex: String
get() = this.map { "${it.key.hex}=${it.value.hex}" }.toString()
I added the @JvmName
annotation to fix the error in the IDE. However, when I try to build I still get an error:
Error:(1, 1) Kotlin: Platform declaration clash: The following declarations have the same JVM signature (hex$annotations(Ljava/util/Map;)V):
val Map<UInt, UByte>.hex: String...
val Map<UInt, UInt>.hex: String...
Is there a way around this without changing the property names?karelpeeters
05/07/2019, 9:29 AMilya.gorbunov
05/07/2019, 6:18 PMkarelpeeters
05/07/2019, 8:24 PMhex$annotations
exist?crummy
05/07/2019, 11:34 PM