1## Test that we detect the correct error.
2function duplicate_parent_nested2 ()
3 function notbug ()
4 function bug ()
5 endfunction
6 endfunction
7 function bug () ## no error here
8 function bug () ## error here (duplicates parent name)
9 endfunction
10 endfunction
11endfunction
12