Given the following code:
open class Foo {
companion object {
fun fez() {}
}
}
class Bar : Foo() {
companion object {
fun baz() { fez() }
}
}
baz()
can callfez()
- I can call
Foo.fez()
- I can call
Bar.baz()
- But, I cannot call
Bar.fez()
How do I achieve the final behaviour?