Mercurial > octave
view test/fcn-handle/bug58519.tst @ 28443:bdd52f5e4170 stable
new test for bug #58519
* test/fcn-handle/bug58519.tst: New file.
* test/fcn-handle/module.mk: Update.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 10 Jun 2020 16:07:34 -0400 |
parents | |
children | 713398d4a3c3 |
line wrap: on
line source
%!test <58519> %! fieldname = "a"; %! structure = struct (fieldname, 42); %! anonfunc = @ () structure.(fieldname); %! assert (anonfunc (), 42)