aleksey.tomin

    aleksey.tomin

    1 year ago
    In java exists some library with some class and interface. I’ve created except/actual interface in kotlin-multiplatform. And my interface is the same as jvm interface. Can I join my expect kotlin interface and jvm actual interface/class?
    rnett

    rnett

    1 year ago
    Actual typealias maybe?
    aleksey.tomin

    aleksey.tomin

    1 year ago
    It works!
    expect class AtomicReference<T>(value: T) { 
      var value: T 
    }
    actual typealias AtomicReference<T> = kotlin.native.concurrent.AtomicReference<T>
    😄 PS: All parameter names must be the same as names in the “base” class.