(--------)
Just ran into this myself.
Example below misbehaves as described:
@startuml namespace Namespace { struct Foo {} class Bar {} } Namespace.Foo *-- Namespace.Bar @enduml
Adding...
It seems OK for:
But KO for:
Regards.