Companion object in expected class

Is it possible to use a companion object in an expected class?

I’m getting the following error in the actual implementation:

image