object A { object B { object A } } object B val err = B.A.B val correct = A.B.A