I have a simple interface in my common source set....
# multiplatform
s
I have a simple interface in my common source set. In my android source set I use it with a sealed class
sealed class Test: MyInterface
which is obviously fine. In Swift this interface becomes a
protocol
. I'm trying to mimic the sealed class now with a Swift
enum
enum Test : MyInterface
which fails with
Non-class type 'Test' cannot conform to class protocol 'MyInterface'
. Is there a way to not transform it to a class-only protocol in Swift? It seems Swift automatically assumes it's class only when looking at the generated header file.