view test/bug-50014/duplicate_parent_nested2.m @ 28943:e3a337a57588

maint: Use only one '#' character for comments that trail code. * isequal.m, isequaln.m, fieldnames.m, ode15s.m, __ezplot__.m, __gnuplot_draw_axes__.m, bicgstab.m, duplicate_parent_nested2.m: Use only one '#' character for comments that trail code.
author Rik <rik@octave.org>
date Thu, 15 Oct 2020 19:56:54 -0700
parents 0c99b8c2e5bb
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