Is it possible to use expect and actual with a sta...
# multiplatform
c
Is it possible to use expect and actual with a static function like
SomeType.fromByteArray(data: ByteArray)
? Because I know you can’t expect companion objects
👌 1
b
You can expect companion object members. This is a valid kotlin code
Copy code
interface MyInt {
  companion object
}

expect fun MyInt.Companion.someFunction()
c
🙏 bless, this is amazing!