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