From 9ff1b2810e70658b2364b737478e9a996de0a644 Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Sun, 3 Sep 2023 11:42:00 -0700 Subject: users/29220: fix bug with assignment to private following explicit unset --- Test/V10private.ztst | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Test') diff --git a/Test/V10private.ztst b/Test/V10private.ztst index b191afcb7..b876f548d 100644 --- a/Test/V10private.ztst +++ b/Test/V10private.ztst @@ -377,6 +377,13 @@ F:Should we allow "public" namerefs to private parameters? *?*no such variable: ptr1 *?*no such variable: ptr2 + () { + private x=1 + unset x + x=2 + } +0:regression test for unset private + %clean rm -r private.TMP -- cgit v1.2.3