I'm trying to add the `expect interface Cloneable`...
# multiplatform
e
I'm trying to add the
expect interface Cloneable
into the common module and
typealias
it to
kotlin.Cloneable
(which for some reason is in JVM artifact only), and I'm getting the following error:
Copy code
Actual class 'Cloneable' has no corresponding members for expected class members:

    public abstract expect fun clone(): Any

    The following declaration is incompatible because modality is different:
        protected open fun clone(): Any
Any idea why the
clone()
method shows up as
protected
?