Given I have an `expect object` with inner interface inside it, how can I use this interface in an `...
a
Given I have an
expect object
with inner interface inside it, how can I use this interface in an
actual
implementation?
Copy code
expect object MyObject {
    fun foo(): MyInterface
    
    interface MyInterface {
        fun bar()
    }
}

actual object MyObject {
    actual fun foo(): MyObject.MyInterface = // MyInterface is unresolved here 
        TODO()
}
Looks like I have to add actual implementation of the interface as well.
a
Answered your own question