Lena Brusilovski
03/28/2021, 7:59 AMThe 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?