# HG changeset patch # User John W. Eaton # Date 1586607969 14400 # Node ID 9b462c3cb51a0eaea5c5cc6cbf57f9169f73d71b # Parent b8384ed4d500fa293498400bb02f77c5898f2c06# Parent 6c88000fed4826c9632ab3dea24411eb69ef54bd maint: merge stable to default. diff -r b8384ed4d500 -r 9b462c3cb51a test/nest/script_nest_2.m --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/nest/script_nest_2.m Sat Apr 11 08:26:09 2020 -0400 @@ -0,0 +1,7 @@ +# script_nest.m +function r = script_nest_2 (x) + function r = nest_fun () + r = 13; + endfunction + script_nest_script_2; +endfunction diff -r b8384ed4d500 -r 9b462c3cb51a test/nest/script_nest_script_2.m --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/nest/script_nest_script_2.m Sat Apr 11 08:26:09 2020 -0400 @@ -0,0 +1,8 @@ +# script_nest_script.m +if (x > 0) + r = x * 2; +else + ## Expect error since nested function should not be + ## visible in this context. + r = nest_fun (); +endif