Why stereotypes does not work in "as" statements

0 votes
asked Nov 12, 2012 in Closed question / help by anonymous
e.g.

@startuml

[Some Object]<<Stereotype>> as SO

Iface - SO

@enduml

This works:

@startuml

[Some Object] as SO

Iface - SO<<Stereotype>>

@enduml

1 Answer

0 votes
answered Nov 12, 2012 by plantuml (279,680 points)

 

Actually, it does work like this:
 
@startuml
[Some Object] as SO <<Stereotype>>
Iface - SO
@enduml
 
Maybe we should enable both syntax ?
commented Nov 12, 2012 by anonymous
Oh, thanks a lot. Is it documented? I'd prefer both to work as for me SO is an alias and Stereotype is property of Object, not it's alias.
...