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