https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
k

Kris Wong

07/31/2019, 4:19 PM
is there anything that can be done within IDEA to prevent it from showing errors related to iOS SDK bindings that are caused by "overlapping" method signatures (it shows as an incorrect return type)?
that is to say, the types are matching but the argument names differ
t

Thomas

07/31/2019, 5:08 PM
Add
@Suppress("CONFLICTING_OVERLOADS")
to the class
To override different methods with clashing Kotlin signatures, you can add a @Suppress("CONFLICTING_OVERLOADS") annotation to the class.
k

Kris Wong

07/31/2019, 5:34 PM
thanks. unfortunately that doesn't work.
t

Thomas

07/31/2019, 5:36 PM
Could you share some code to better understand your issue?
k

Kris Wong

07/31/2019, 5:37 PM
t

Thomas

07/31/2019, 5:47 PM
Not sure why that is happening. I am getting the error as well. Maybe someone else knows a solution.
k

Kris Wong

07/31/2019, 5:48 PM
thanks for trying 🙂
s

svyatoslav.scherbina

08/01/2019, 8:06 AM