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