I am confused about why Scala is complaining about this code. I have two classes which depend on each other. When I try to create a new instance of A without a type
A
You can specify the type of y specifically and it will compile:
y
val y : A = new A(new B(y))