package bug object Wrap { trait Foo { def foo: Unit = println("ok") } }