Bar::baz()> is in the scope of the second.

In your example, you actually access $Bar::d