i want to have an expect/actual and have the same ...
# multiplatform
a
i want to have an expect/actual and have the same implementation on all platforms but 1. is there a way to specify a default value, or would i need to create an actual on each platform and have all of them use some common implementation of it?
e
or the other common approach is
Copy code
// common
expect fun foo()
internal fun commonFoo() { ... }
// all targets but one
actual fun foo() = commonFoo()
// the one specialized target
actual fun foo() { ... }
3