SrSouza
01/13/2022, 12:38 AMexpect interface with a expect val property: String that should be defined with actual get() = ?
The currently interface I want to move to multiplatform looks something like this:
interface Screen : Serializable {
val key: String
get() = this::class.qualiedName ?: error()
}
So it was Serializable , I'm expect/actual for the JVM version to have Serializable (Android need it), and the key I'm not able to use expect/actual.Trevor Stone
01/13/2022, 12:41 AMSrSouza
01/13/2022, 12:42 AMexpect but it by default, and it also is abstract by default, so I add a open modifier and I was able to use actual on JVM