Arkadii Ivanov

    Arkadii Ivanov

    1 year ago
    Given I have an
    expect object
    with inner interface inside it, how can I use this interface in an
    actual
    implementation?
    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.
    andylamax

    andylamax

    1 year ago
    Answered your own question