Class B knows Class A displays a solid arrow from Class B to Class A.
Now, add that Class A has-a Class B. Rather than displaying both the solid arrow and the diamond arrow, the solid arrow is simply replaced with the diamond arrow. The code is generated correctly, though. So, now the diagram does not correctly represent the actual code.