From ad1b46578eb08415d6142aaf558ff5f59fa2e179 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Sun, 29 Jan 2017 21:17:48 +0000 Subject: 40460: WARN_NESTED_VAR: Don't warn when assigning to a slice of an existing array --- Test/E01options.ztst | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Test') diff --git a/Test/E01options.ztst b/Test/E01options.ztst index 343d5a9c1..2bd4fdb1a 100644 --- a/Test/E01options.ztst +++ b/Test/E01options.ztst @@ -1137,6 +1137,8 @@ ( foo1=global1 foo2=global2 foo3=global3 foo4=global4 integer foo5=5 + # skip foo6, defined in fn_wnv + foo7=(one two) fn_wnv() { # warns foo1=bar1 @@ -1161,6 +1163,8 @@ integer foo6=9 # doesn't warn (( foo6=10 )) + foo7[3]=three + foo7[4]=(four) } print option off >&2 fn_wnv -- cgit 1.4.1