diff options
Diffstat (limited to 'Test')
-rw-r--r-- | Test/E01options.ztst | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Test/E01options.ztst b/Test/E01options.ztst index fd3263a8f..c265d78d8 100644 --- a/Test/E01options.ztst +++ b/Test/E01options.ztst @@ -1203,6 +1203,18 @@ >association-local >foo + ( + setopt warnnestedvar + () { + local var=(one two) + () { var=three; } + print $var + } + ) +0:Warn when changing type of nested variable. +?(anon): scalar parameter var set in enclosing scope in function (anon) +>three + # This really just tests if XTRACE is egregiously broken. # To test it properly would need a full set of its own. fn() { print message; } |