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