!global $variable ?= "default variable" produces error "a001"

0 votes
asked Mar 12, 2023 in Bug by anonymous

found (minor) bug, maybe you want to fix it.
I know, only global default variables are useful (and therefore I assume they check only global variables) and the word global is not required. But if I use it in combination with global I get an a001 error.

e.g. this produces an error

@startuml
!global $variable = "changed value"
!global $variable ?= "default value"
[A] -> [B]: $variable
@enduml

this works

@startuml
!global $variable = "changed value"
!$variable ?= "default value"
[A] -> [B]: $variable
@enduml

BR Helmut

1 Answer

0 votes
answered Mar 15, 2023 by plantuml (294,960 points)

Many thanks for the report.

This is fixed in last snapshot and on the online server.

Best regards,

...