Need tests run for handles to nested functions

Could someone please run the attached tests in a recent version of Matlab and report the results here?

Unpack the zip file, start Matlab and cd to the top-level nested-tests directory and execute the run_tests.m script, then upload the resulting diary file here.

nested-tests.zip (2.0 KB)

Matlab r2021a prerelease 64 bit linux
diary (6.4 KB)

Thanks for your help!

Here’s another test file. Could someone please run this test and report the results here? Same as before, unpack the zip file, start Matlab and cd to the top-level nested-tests-2 directory and execute the run_tests.m script, then upload the resulting diary file here.

nested-tests-2.zip (1.4 KB)

With Matlab R2020b on Windows 10:
diary (836 Bytes)

Thanks. That’s what I expected, but not what Octave currently does, even with my latest changes. :unamused: