package test trait A public class B { private val bar = object : A {} }