trait A extends java.lang.Object {} object test { def x: A = x; }