view test/bug-50014/duplicate_parent_nested2.m @ 31216:f111d1caa73d stable

canonicalize_file_name: Trim trailing file separators from root of mapped network drive (bug #62847). * liboctave/system/file-ops.cc (canonicalize_file_name): Trim trailing file separators from root of mapped network drive before potentially replacing it in the canonicalized path.
author Markus Mützel <markus.muetzel@gmx.de>
date Tue, 30 Aug 2022 18:26:30 +0200
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