class Foo : Bar() { fun test(): String { return Companion.bar } companion object { val bar: String = "bar" } }