package test import test.A.O object A { object O { } } class B { val x = A.O }