view test/bug-50014/duplicate_parent_nested2.m @ 31246:43a6be589387

doc: New documentation for memoization techniques (bug #60860) vectorize.texi: New section on memoization octave.texi: List new section
author Arun Giridhar <arungiridhar@gmail.com>
date Thu, 29 Sep 2022 20:31:52 -0400
parents e3a337a57588
children
line wrap: on
line source

## Test that we detect the correct error.
function duplicate_parent_nested2 ()
  function notbug ()
    function bug ()
    endfunction
  endfunction
  function bug ()  # no error here
    function bug ()  # error here (duplicates parent name)
    endfunction
  endfunction
endfunction