view test/bug-50014/duplicate_parent_nested2.m @ 32063:3b9305e62bb7

avoid LU warnings in sparse tests (bug #64117) * mk-sparse-tst.sh: Avoid warnings from LU in sparse tests.
author John W. Eaton <jwe@octave.org>
date Thu, 27 Apr 2023 13:25:01 -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