class Test { companion object {} fun test() {} } fun Test.Companion.foo() {}