1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-27 04:40:59 +01:00

37208: re-run the "typeset" tests with the private module loaded

This commit is contained in:
Barton E. Schaefer 2015-11-23 21:45:24 -08:00
parent 4e90e27036
commit e73b73e0b0
2 changed files with 9 additions and 1 deletions

View file

@ -11,6 +11,11 @@
(zmodload -u zsh/param/private && zmodload zsh/param/private)
0:unload and reload the module without crashing
$ZTST_exe +Z -f $ZTST_srcdir/ztst.zsh $ZTST_srcdir/B02typeset.ztst
0:typeset still works with zsh/param/private module loaded
*>*
*>*
typeset scalar_test=toplevel
() {
print $scalar_test
@ -237,7 +242,7 @@ F:note "typeset" rather than "private" in output from outer
}
print Y ${(kv)hash_test} Z $array_test
}
print ${(kv)hash_test}
print ${(kv)hash_test} ${(t)array_test}
0:privates are not visible in anonymous functions, part 3
>X top level
>Y in function Z in function