Is it possible to fulfill the companion object of ...
# multiplatform
s
Is it possible to fulfill the companion object of something typealiased to a java type? ie.
Copy code
expect class Foo {
    companion object {
        fun of() : Foo
    }
}

actual typealias Foo = java.lang.String
It's in the docs
s
Where exactly?
a
what I linked is a single page
did you actually read it?
i
@spand No, currently Java classes can't be actual for expect classes with companions, because they do not have companion objects. But we're exploring such possibility.
@addamsson The docs don't answer this particular question.
a
oh I see
mea culpa
s
Ok. Thanks for the reply!