https://kotlinlang.org logo
#arrow
Title
# arrow
m

Masrur Mirboboev

08/22/2022, 6:51 AM
Hello world, Recently I was playing around and trying to integrate
arrow-optics
into one of our projects, but stumbled upon an issue. When declaring a
typealias
in the same file where I have
@optics
annotation, build of the gradle application fails with
Duplicated JVM name error
. I was able to overcome the issue by declaring
@file:JvmName("JvmNameOfFile")
, but quite curious to know if there are any other more elegant ways to fix it and fix the root cause. Any help would be much appreciated 🙏
s

simon.vergauwen

08/22/2022, 8:18 AM
Hey @Masrur Mirboboev, This sounds like a bug in the code generation of Arrow Optics. Glad you find a work around. Would be great if you could create a issue ticket here, https://github.com/arrow-kt/arrow/issues With a reproducible example 🙏
m

Masrur Mirboboev

08/22/2022, 9:38 AM
Created the issue here https://github.com/arrow-kt/arrow/issues/2803 thanks for the support 🙏
4 Views