changeset 28196:20dea4a919c0

maint: merge stable to default.
author John W. Eaton <jwe@octave.org>
date Wed, 08 Apr 2020 16:00:54 -0400
parents 36a27ecbfc83 (current diff) 7567413e7246 (diff)
children 7ac8b3188b27
files
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test/nest/nest.tst	Wed Apr 08 14:59:01 2020 -0400
+++ b/test/nest/nest.tst	Wed Apr 08 16:00:54 2020 -0400
@@ -150,3 +150,7 @@
 %! f2 = counter ();
 %! observed = [f1(), f1(), f2(), f1(), f2()];
 %! assert (observed, [1, 2, 1, 3, 2]);
+
+## Test visibility of nested function from script called from parent.
+%!assert (script_nest_2 (42), 84);
+%!error script_nest_2 (0)