view test/nest/script_nest_script_2.m @ 28202:6c88000fed48 stable

add test files accidentally omitted from previous change 7567413e7246 * test/nest/script_nest_2.m, test/nest/script_nest_script_2.m: New files.
author John W. Eaton <jwe@octave.org>
date Sat, 11 Apr 2020 08:19:45 -0400
parents
children fc4bb4bd1d5e
line wrap: on
line source

# 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