package test interface A class B { companion object { fun bar() = object : A { } } }