With that patch, I get this:
$ typeset -n ref=(var1 var2)
typeset: -a not allowed with -n
which is a bit confusing as there is no -a. When I do the same with -i, I get the following error:
$ typeset -i int=(123 456)
typeset: int: inconsistent type for assignment
If I replace your zwarnnam with the zerrnam used for -i
- zwarnnam(name, "-a not allowed with -n");
+ zerrnam(name, "%s: inconsistent type for assignment", asg->name);
then I get a similar error message which looks more appropriate:
$ typeset -n ref=(var1 var2)
typeset: ref: inconsistent type for assignment
and combining explicitly -n with -a still generates the previous message:
$ typeset -na ref=(var1 var2)
typeset: -a not allowed with -n
Philippe