i have a protocol that is originated in iOS and i ...
# multiplatform
l
i have a protocol that is originated in iOS and i want to implement it in kotlin, however i get the following exception when i try to run it:
Copy code
The root cause java.lang.IllegalArgumentException was thrown at: org.jetbrains.kotlin.backend.konan.lower.InteropLoweringPart1.checkKotlinObjCClass(InteropLowering.kt:434)
The problem is the instance must also be an object i think, but i dont know how to define it so it is both an object and implements my protocol I’ve tried class Stam: NSObject(), MyProtocol but it fails on the fact that MyProtocol is final and i cant change it to be non final, because i dont have access to it. what to do?