view test/nest/script_nest_script_2.m @ 31090:1779a64b2510

maint: Merge stable to default
author Arun Giridhar <arungiridhar@gmail.com>
date Fri, 10 Jun 2022 18:57:17 -0400
parents fc4bb4bd1d5e
children
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