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