diff test/module.mk @ 28698:d45d1b4bb919 stable

allow functions to be redefined in scripts (bug #52851) * parse.h, oct-parse.yy (base_parser::parent_scope_info::m_parser): New data member to allow access to parent parser object. Update constructor and use. (base_parser::parent_scope_info::name_ok): Only fail when a duplicate is found if parsing a subfunction, local function, or nested function. (base_parser::parsing_subfunctions, base_parser::curr_fcn_depth): Provide access to the corresponding member variables. * test/bug-52851/bug-52851.tst, test/bug-52851/script1.m, test/bug-52851/script2.m, test/bug-52851/script3.m, test/bug-52851/script4.m: New test files. * test/bug-52851/module.mk: New file. * test/module.mk b/test/module.mk: Update.
author John W. Eaton <jwe@octave.org>
date Wed, 09 Sep 2020 13:41:46 -0400
parents 1be719d8b375
children 61a089ada620 3719f5d452d4
line wrap: on
line diff
--- a/test/module.mk	Tue Sep 08 22:41:19 2020 -0400
+++ b/test/module.mk	Wed Sep 09 13:41:46 2020 -0400
@@ -77,6 +77,7 @@
 include %reldir%/bug-51599/module.mk
 include %reldir%/bug-52075/module.mk
 include %reldir%/bug-52722/module.mk
+include %reldir%/bug-52851/module.mk
 include %reldir%/bug-53027/module.mk
 include %reldir%/bug-53468/module.mk
 include %reldir%/bug-53956/module.mk